Merge pull request #6211 from overleaf/em-code-sharing
Change directory layout in service containers GitOrigin-RevId: 09ff19db2a123cbf7691d51e9ce9be6eee264287
This commit is contained in:
@@ -4,20 +4,17 @@
|
||||
|
||||
FROM node:14.18.1 as base
|
||||
|
||||
WORKDIR /app
|
||||
WORKDIR /overleaf/services/docstore
|
||||
|
||||
FROM base as app
|
||||
|
||||
#wildcard as some files may not be in all repos
|
||||
COPY package*.json npm-shrink*.json /app/
|
||||
COPY services/docstore/package*.json /overleaf/services/docstore/
|
||||
|
||||
RUN npm ci --quiet
|
||||
|
||||
COPY . /app
|
||||
COPY services/docstore /overleaf/services/docstore
|
||||
|
||||
FROM base
|
||||
|
||||
COPY --from=app /app /app
|
||||
FROM app
|
||||
USER node
|
||||
|
||||
CMD ["node", "--expose-gc", "app.js"]
|
||||
|
||||
Reference in New Issue
Block a user