mirror of
https://github.com/ngthanhvu/kr-phim.git
synced 2026-08-10 13:27:46 +00:00
fix: update Dockerfile to include missing package installation and public directory copy
This commit is contained in:
+1
-2
@@ -8,5 +8,4 @@ npm-debug.log
|
||||
*.log
|
||||
.env
|
||||
.env.*
|
||||
Dockerfile
|
||||
docker-compose.yml
|
||||
.DS_Store
|
||||
|
||||
+3
-1
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user