# 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