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/dockerfile

19 lines
401 B

# Stage 1 - the build process
FROM node:13-alpine as build-deps
WORKDIR /usr/src/app
COPY frontend/package.json frontend/package-lock.json frontend/config-overrides.js ./
RUN yarn
COPY frontend/ ./
RUN yarn build
# Backend
FROM node:13-alpine
WORKDIR /app
COPY backend/package.json backend/package-lock.json ./
RUN yarn
COPY backend/ ./
COPY --from=build-deps /usr/src/app/build public
EXPOSE 3001