From 9180ce726110d489e849c7898e45d8116a936fa6 Mon Sep 17 00:00:00 2001 From: titver968 Date: Tue, 4 Mar 2025 14:20:42 +0100 Subject: [PATCH] Dockerfile --- tatort/Dockerfile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/tatort/Dockerfile b/tatort/Dockerfile index b5a59a9..28eb977 100644 --- a/tatort/Dockerfile +++ b/tatort/Dockerfile @@ -1,15 +1,17 @@ +# --- Build stage --- FROM node:19 as build ENV NODE_ENV=production WORKDIR /app COPY package.json ./ COPY package-lock.json ./ -RUN npm install +RUN npm ci COPY . ./ RUN npm run build + +# --- Production stage --- FROM node:19-alpine3.16 -WORKDIR /app COPY --from=build /app . ENV HOST=0.0.0.0 -EXPOSE 3000 -CMD ["npm","start","run", "preview","--", "--host", "0.0.0.0"] +EXPOSE 4173 +CMD ["npm", "run", "preview","--", "--host", "0.0.0.0"]