eo-services-client/Dockerfile
2023-10-13 16:37:05 -05:00

17 lines
463 B
Docker

# syntax=docker/dockerfile:1
# build stage
FROM node:lts-alpine as build-stage
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
RUN npm run build
# production stage
FROM nginx:stable-alpine as production-stage
COPY --from=build-stage /app/dist /app/eo-services
COPY nginx.conf /etc/nginx/nginx.conf
COPY default.conf.template /etc/nginx/templates/default.conf.template
COPY headers.js /etc/nginx/headers.js
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]