Kopie van https://gitlab.com/studieverenigingvia/ict/centurion met een paar aanpassingen
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
centurion/frontend/Dockerfile

18 lines
351 B

FROM node:13-alpine AS build
WORKDIR /app
COPY package.json yarn.lock config-overrides.js ./
RUN yarn install
COPY tsconfig.json ./
COPY public public/
COPY src src/
RUN yarn build
FROM nginx:alpine
WORKDIR /app
COPY --from=build /app/build /usr/share/nginx/html
COPY nginx.conf /etc/nginx/conf.d/default.conf
CMD ["nginx", "-g", "daemon off;"]