2 Commits

Author SHA1 Message Date
e38d9ed53b using busy box image instead of alpine for httpd server
All checks were successful
continuous-integration/drone/tag Build is passing
2025-10-31 19:51:41 +05:30
32687fee5a correct dockerfile for vite
Some checks failed
continuous-integration/drone/tag Build is failing
continuous-integration/drone Build is passing
2025-10-31 19:30:12 +05:30

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
# Stage 2: Static file server (BusyBox)
FROM busybox: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"]