fids/browser-domain/Dockerfile

12 lines
278 B
Docker

FROM node:17.9.1 AS app
WORKDIR /app
COPY . .
RUN npm install && npm run build
FROM nginx:alpine
WORKDIR /usr/share/nginx/html
RUN rm -rf ./*
COPY --from=app /app/build .
COPY nginx/default.conf /etc/nginx/conf.d/default.conf
EXPOSE 80
ENTRYPOINT ["nginx", "-g", "daemon off;"]