Dockerfile
This commit is contained in:
10
Dockerfile
10
Dockerfile
@@ -1,5 +1,5 @@
|
||||
# --- Build stage ---
|
||||
FROM node:22 AS build
|
||||
FROM node:22-bullseye AS build
|
||||
ENV NODE_ENV=production
|
||||
ENV ORIGIN=https://tatort.innovation-hub-niedersachsen.de
|
||||
ENV PNPM_HOME="/usr/local/lib/node_modules/pnpm"
|
||||
@@ -23,8 +23,12 @@ COPY . ./
|
||||
RUN pnpm run build
|
||||
|
||||
# --- Production stage ---
|
||||
FROM node:22-alpine3.20
|
||||
COPY --from=build /usr/src/app .
|
||||
FROM node:22-bullseye AS production
|
||||
WORKDIR /usr/src/app
|
||||
COPY package.json pnpm-lock.yaml ./
|
||||
RUN pnpm install --production
|
||||
|
||||
COPY --from=build /usr/src/appi/dist ./dist
|
||||
ENV HOST=0.0.0.0
|
||||
EXPOSE 3000
|
||||
|
||||
|
||||
Reference in New Issue
Block a user