FROM node:20-alpine as build-stage WORKDIR /app COPY . . RUN npm install RUN npm run build # ######################### FROM nginx as production-stage # Copy dependencies from builder COPY --from=build-stage /app/dist /usr/share/nginx/html COPY docker-entrypoint.sh /docker-entrypoint.sh RUN chmod +x /docker-entrypoint.sh COPY nginx.conf /etc/nginx/conf.d/default.conf EXPOSE 3200 ENTRYPOINT "/docker-entrypoint.sh"