mirror of
https://github.com/ngthanhvu/kr-phim.git
synced 2026-08-10 15:07: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
|
*.log
|
||||||
.env
|
.env
|
||||||
.env.*
|
.env.*
|
||||||
Dockerfile
|
.DS_Store
|
||||||
docker-compose.yml
|
|
||||||
|
|||||||
+3
-1
@@ -1,7 +1,8 @@
|
|||||||
FROM node:22-alpine AS deps
|
FROM node:22-alpine AS deps
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY package*.json ./
|
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
|
FROM node:22-alpine AS builder
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
@@ -19,6 +20,7 @@ ENV NITRO_HOST=0.0.0.0
|
|||||||
ENV NITRO_PORT=3002
|
ENV NITRO_PORT=3002
|
||||||
|
|
||||||
COPY --from=builder /app/.output ./.output
|
COPY --from=builder /app/.output ./.output
|
||||||
|
COPY --from=builder /app/public ./public
|
||||||
|
|
||||||
EXPOSE 3002
|
EXPOSE 3002
|
||||||
CMD ["node", ".output/server/index.mjs"]
|
CMD ["node", ".output/server/index.mjs"]
|
||||||
|
|||||||
Reference in New Issue
Block a user