Getting started with change docker file'
This commit is contained in:
10
change/Dockerfile
Normal file
10
change/Dockerfile
Normal 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 . .
|
||||
Reference in New Issue
Block a user