eo-services-client/Dockerfile
Peter.Morton 588f90feb6 Added new authentication methods using authKey
and cookies.  Also now handles changes to base url for
use with reverse proxies
2023-07-26 17:01:36 -05:00

16 lines
393 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 headers.js /etc/nginx/headers.js
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]