Files
scarif/change/Dockerfile

11 lines
439 B
Docker

FROM alpine/git:latest
WORKDIR /change
RUN git clone git@labs.scarif.space/chris/change-game.git
FROM node:alpine as base
WORKDIR /change
COPY package.json yarn.lock ./
RUN rm -rf frontend/node_modules && yarn --cwd frontend install --frozen-lockfile && yarn --cwd frontend cache clean && yarn --cwd frontend build
RUN rm -rf backend/node_modules && yarn --cwd backend install --frozen-lockfile && yarn --cwd backend cache clean
COPY . .