fix: update Dockerfile to include missing package installation and public directory copy

This commit is contained in:
ngthanhvu
2026-08-06 22:55:02 -04:00
parent 8ebc375218
commit ec1a58ed86
2 changed files with 4 additions and 3 deletions
+1 -2
View File
@@ -8,5 +8,4 @@ npm-debug.log
*.log
.env
.env.*
Dockerfile
docker-compose.yml
.DS_Store
+3 -1
View File
@@ -1,7 +1,8 @@
FROM node:22-alpine AS deps
WORKDIR /app
COPY package*.json ./
RUN npm ci
RUN apk add --no-cache libc6-compat 2>/dev/null || true
RUN npm ci --ignore-scripts || npm ci
FROM node:22-alpine AS builder
WORKDIR /app
@@ -19,6 +20,7 @@ ENV NITRO_HOST=0.0.0.0
ENV NITRO_PORT=3002
COPY --from=builder /app/.output ./.output
COPY --from=builder /app/public ./public
EXPOSE 3002
CMD ["node", ".output/server/index.mjs"]