Files
webclone/Dockerfile
T
2026-05-18 00:06:03 +00:00

23 lines
465 B
Docker

# 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"]