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"]