From 691a2af5ec3bf5fa0449408d7af34435811bf7cf Mon Sep 17 00:00:00 2001 From: Chris Date: Mon, 30 Dec 2024 10:02:31 +0000 Subject: [PATCH] Getting started with change docker file' --- change/Dockerfile | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 change/Dockerfile diff --git a/change/Dockerfile b/change/Dockerfile new file mode 100644 index 0000000..996d9dc --- /dev/null +++ b/change/Dockerfile @@ -0,0 +1,10 @@ +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 . .