FROM node:latest as build-stage WORKDIR /app COPY package*.json ./ RUN npm install COPY ./ . RUN npm run build FROM nginx:stable-alpine as production-stage RUN mkdir /app RUN apk add --no-cache tzdata ENV TZ Europe/Warsaw COPY --from=build-stage /app/dist /usr/share/nginx/html COPY ./nginx.conf /etc/nginx/conf.d/default.conf RUN mkdir -p /scripts COPY insert_version.sh /scripts/ WORKDIR /scripts EXPOSE 80 EXPOSE 443