Merge pull request #6211 from overleaf/em-code-sharing

Change directory layout in service containers

GitOrigin-RevId: 09ff19db2a123cbf7691d51e9ce9be6eee264287
This commit is contained in:
Eric Mc Sween
2022-01-06 10:02:36 -05:00
committed by Copybot
parent 6ddbf23da0
commit f3f0be5c56
57 changed files with 225 additions and 210 deletions
+4 -7
View File
@@ -4,20 +4,17 @@
FROM node:14.18.1 as base
WORKDIR /app
WORKDIR /overleaf/services/track-changes
FROM base as app
#wildcard as some files may not be in all repos
COPY package*.json npm-shrink*.json /app/
COPY services/track-changes/package*.json /overleaf/services/track-changes/
RUN npm ci --quiet
COPY . /app
COPY services/track-changes /overleaf/services/track-changes
FROM base
COPY --from=app /app /app
FROM app
USER node
CMD ["node", "--expose-gc", "app.js"]