mirror of
https://github.com/ngthanhvu/kr-phim.git
synced 2026-08-10 15:07:46 +00:00
feat(docker): restructure Docker setup with new Dockerfiles and docker-compose files
Deploy / deploy (push) Failing after 2m50s
Deploy / deploy (push) Failing after 2m50s
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
FROM node:22-alpine AS deps
|
||||
RUN apk add --no-cache libc6-compat
|
||||
WORKDIR /app
|
||||
COPY package*.json ./
|
||||
RUN npm ci
|
||||
|
||||
FROM node:22-alpine AS builder
|
||||
WORKDIR /app
|
||||
ENV NODE_ENV=production
|
||||
COPY --from=deps /app/node_modules ./node_modules
|
||||
COPY . .
|
||||
RUN npm run build
|
||||
|
||||
FROM node:22-alpine AS runner
|
||||
WORKDIR /workspace
|
||||
ENV NODE_ENV=production
|
||||
ENV HOST=0.0.0.0
|
||||
ENV PORT=3002
|
||||
ENV NITRO_HOST=0.0.0.0
|
||||
ENV NITRO_PORT=3002
|
||||
COPY --from=builder /app/.output ./.output
|
||||
EXPOSE 3002
|
||||
CMD ["node", ".output/server/index.mjs"]
|
||||
Reference in New Issue
Block a user