radiator-web/Dockerfile

14 lines
333 B
Docker
Raw Permalink Normal View History

2021-04-04 15:51:45 +02:00
FROM node:alpine as build-stage
2021-04-04 15:35:36 +02:00
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
RUN npm run build
# production stage
FROM nginx:stable-alpine as production-stage
2021-04-04 20:25:23 +02:00
COPY ./nginx/default.conf /etc/nginx/conf.d/default.conf
2021-04-04 15:35:36 +02:00
COPY --from=build-stage /app/dist /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]