mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-15 06:33:55 +01:00
Merge pull request #6542 from overleaf/jpa-em-code-sharing-workspaces
[misc] npm workspaces GitOrigin-RevId: 87aa72db6637fb238d7cd35b0a48ac3ed58ab3eb
This commit is contained in:
@@ -1,21 +1,24 @@
|
||||
# the base image is suitable for running web with /overleaf/services/web bind
|
||||
# mounted
|
||||
FROM node:14.18.3 as base
|
||||
FROM gcr.io/overleaf-ops/node:14.18.3 as base
|
||||
|
||||
WORKDIR /overleaf/services/web
|
||||
|
||||
# install_deps changes app files and installs npm packages
|
||||
# as such it has to run at a later stage
|
||||
|
||||
RUN mkdir /overleaf/services/web/node_modules \
|
||||
&& chown node:node /overleaf/services/web/node_modules
|
||||
# Google Cloud Storage needs a writable $HOME/.config for resumable uploads
|
||||
# (see https://googleapis.dev/nodejs/storage/latest/File.html#createWriteStream)
|
||||
RUN mkdir /home/node/.config && chown node:node /home/node/.config
|
||||
|
||||
# the deps image is used for caching npm ci
|
||||
FROM base as deps
|
||||
|
||||
COPY services/web/package.json services/web/package-lock.json /overleaf/services/web/
|
||||
COPY package.json package-lock.json /overleaf/
|
||||
COPY services/web/package.json /overleaf/services/web/
|
||||
COPY libraries/ /overleaf/libraries/
|
||||
|
||||
RUN npm ci --quiet
|
||||
RUN cd /overleaf && npm ci --quiet
|
||||
|
||||
|
||||
# the dev is suitable for running tests
|
||||
|
||||
Reference in New Issue
Block a user