diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..6e81e77 --- /dev/null +++ b/Dockerfile @@ -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"] \ No newline at end of file