chore: add Dockerfile for build fallback
This commit is contained in:
+23
@@ -0,0 +1,23 @@
|
||||
# CloneWeb - Web Interface Dockerfile
|
||||
FROM node:20-alpine
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# Copy package files
|
||||
COPY web-interface/package*.json ./
|
||||
|
||||
# Install dependencies
|
||||
RUN npm install --production
|
||||
|
||||
# Copy application files
|
||||
COPY web-interface/ .
|
||||
|
||||
# Expose port
|
||||
EXPOSE 3000
|
||||
|
||||
# Health check
|
||||
HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
|
||||
CMD wget --no-verbose --tries=1 --spider http://localhost:3000/ || exit 1
|
||||
|
||||
# Start server
|
||||
CMD ["node", "server.js"]
|
||||
Reference in New Issue
Block a user