FROM node:latest AS build RUN npm install -g pnpm ARG CONFIGURATION=development WORKDIR /usr/local/app COPY . . RUN pnpm install RUN pnpm "build:$CONFIGURATION" FROM nginx:alpine RUN rm /etc/nginx/conf.d/* RUN apk add --update dos2unix ENV DOLLAR=$ WORKDIR /usr/share/nginx/html COPY --from=build /usr/local/app/dist/Vegasco-Web/browser . COPY nginx.conf /etc/nginx/nginx.conf RUN dos2unix /etc/nginx/nginx.conf COPY webserver.conf.template /etc/nginx/templates/webserver.conf.template RUN dos2unix /etc/nginx/templates/webserver.conf.template EXPOSE 80