correct dockerfile for vite
Some checks failed
continuous-integration/drone/tag Build is failing
continuous-integration/drone Build is passing

This commit is contained in:
2025-10-31 19:30:12 +05:30
parent 3666c8c63f
commit 32687fee5a

View File

@@ -13,21 +13,19 @@ RUN npm ci
# Copy the rest of the app
COPY . .
# Build the app (React/Next/etc.)
# Build the app
RUN npm run build
# Stage 2: Production image
FROM node:20-alpine
FROM alpine:latest
WORKDIR /app
# Copy only build output and dependencies
COPY --from=builder /app/package*.json ./
COPY --from=builder /app/node_modules ./node_modules
COPY --from=builder /app/build ./build
# Copy only build frontend files
COPY --from=builder /app/dist /app
# Expose port
EXPOSE 3000
# Default command
CMD ["npm", "start"]
CMD ["busybox", "httpd", "-f", "-p", "3000"]