fix: update npm calls to handle workspaces (#44370)

* fix: use workspaces for crowdin npm ci

* fix: update server.Dockerfile to use workspaces

* fix: update client.Dockerfile to use workspaces
This commit is contained in:
Oliver Eyton-Williams
2021-12-03 15:36:08 +01:00
committed by GitHub
parent e262301ac8
commit 9c078ab5d2
6 changed files with 10 additions and 24 deletions

View File

@@ -1,4 +1,4 @@
FROM node:14.18.2-buster AS builder
FROM node:16-buster AS builder
# this is a bit clunky, perhaps there's a more concise way of passing in build
# arguments
@@ -28,7 +28,7 @@ RUN npm run build:client
WORKDIR /home/node/config
RUN git clone https://github.com/freeCodeCamp/client-config.git client
FROM node:14.18.2-alpine
FROM node:16-alpine
RUN npm i -g serve
USER node
WORKDIR /home/node