run on its own
This commit is contained in:
parent
840d773759
commit
599a3ac1e7
21
Dockerfile
21
Dockerfile
@ -2,21 +2,16 @@ FROM node:20-alpine AS builder
|
|||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
COPY package*.json ./
|
RUN corepack enable && corepack prepare pnpm@latest --activate
|
||||||
RUN npm ci
|
|
||||||
|
COPY package.json pnpm-lock.yaml ./
|
||||||
|
RUN pnpm install --frozen-lockfile
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN npm run build
|
RUN pnpm run build
|
||||||
|
|
||||||
FROM node:20-alpine AS runtime
|
FROM nginx:alpine
|
||||||
|
|
||||||
WORKDIR /app
|
COPY --from=builder /app/dist /usr/share/nginx/html
|
||||||
|
|
||||||
COPY --from=builder /app/dist ./dist
|
EXPOSE 80
|
||||||
COPY --from=builder /app/package*.json ./
|
|
||||||
|
|
||||||
RUN npm ci --omit=dev
|
|
||||||
|
|
||||||
EXPOSE 4321
|
|
||||||
|
|
||||||
CMD ["node", "./dist/server/entry.mjs"]
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user