mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-29 05:33:16 +00:00
ad361a6617
Revert "Upload source maps to Sentry" GitOrigin-RevId: 6f6a122209553b9fde664ff55ebec37f7cb6ef7e
34 lines
637 B
Docker
34 lines
637 B
Docker
FROM node:10.19.0 as base
|
|
|
|
WORKDIR /app
|
|
|
|
# install_deps changes app files and installs npm packages
|
|
# as such it has to run at a later stage
|
|
|
|
FROM base as app
|
|
|
|
COPY package.json package-lock.json /app/
|
|
|
|
RUN npm install --quiet
|
|
|
|
COPY . /app
|
|
|
|
RUN chmod 0755 ./install_deps.sh && ./install_deps.sh
|
|
|
|
FROM base
|
|
|
|
COPY --from=app /app /app
|
|
|
|
WORKDIR /app
|
|
|
|
RUN mkdir -p /app/data/dumpFolder && \
|
|
mkdir -p /app/data/logs && \
|
|
mkdir -p /app/data/pdf && \
|
|
mkdir -p /app/data/uploads && \
|
|
mkdir -p /app/data/zippedProjects && \
|
|
chmod -R 0755 /app/data/ && \
|
|
chown -R node:node /app/data/
|
|
|
|
USER node
|
|
|
|
CMD ["node", "--expose-gc", "app.js"]
|