18 lines
417 B
Docker
18 lines
417 B
Docker
# --- Build stage ---
|
|
FROM node:19 as build
|
|
ENV NODE_ENV=production
|
|
ENV ORIGIN=https://tatort.innovation-hub-niedersachsen.de
|
|
WORKDIR /app
|
|
COPY package*.json ./
|
|
RUN npm ci
|
|
COPY . ./
|
|
RUN ORIGIN=https://tatort.innovation-hub-niedersachsen.de npm run build
|
|
|
|
# --- Production stage ---
|
|
FROM node:19-alpine3.16
|
|
COPY --from=build /app .
|
|
ENV HOST=0.0.0.0
|
|
EXPOSE 4173
|
|
CMD ["npm", "run", "preview","--", "--host", "0.0.0.0"]
|
|
|