Getting started with change docker file'

This commit is contained in:
2024-12-30 10:02:31 +00:00
parent b5dfd92dc0
commit 691a2af5ec

10
change/Dockerfile Normal file
View File

@@ -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 . .