Dockerfile
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
# --- Build stage ---
|
# --- Build stage ---
|
||||||
FROM node:20 AS build
|
FROM node:19 AS build
|
||||||
ENV NODE_ENV=production
|
ENV NODE_ENV=production
|
||||||
ENV ORIGIN=https://tatort.innovation-hub-niedersachsen.de
|
ENV ORIGIN=https://tatort.innovation-hub-niedersachsen.de
|
||||||
ENV PNPM_HOME="/usr/local/lib/node_modules/pnpm"
|
ENV PNPM_HOME="/usr/local/lib/node_modules/pnpm"
|
||||||
@@ -23,7 +23,7 @@ COPY . .
|
|||||||
RUN pnpm run build
|
RUN pnpm run build
|
||||||
|
|
||||||
# --- Production stage ---
|
# --- Production stage ---
|
||||||
FROM node:20
|
FROM node:19-alpine3.16
|
||||||
COPY --from=build /usr/src/app .
|
COPY --from=build /usr/src/app .
|
||||||
ENV HOST=0.0.0.0
|
ENV HOST=0.0.0.0
|
||||||
EXPOSE 3000
|
EXPOSE 3000
|
||||||
|
|||||||
Reference in New Issue
Block a user