1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-11-27 08:21:03 +02:00

Tools: Fixed Docker image building and make it more stable (#5942)

This commit is contained in:
Laurent 2022-01-02 13:48:03 +01:00 committed by GitHub
parent fe770917fd
commit 4ed7c340a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -31,6 +31,7 @@ COPY --chown=$user:$user package*.json ./
COPY --chown=$user:$user .yarn ./.yarn
COPY --chown=$user:$user .yarnrc.yml .
COPY --chown=$user:$user yarn.lock .
COPY --chown=$user:$user gulpfile.js .
RUN yarn install --inline-builds --mode=skip-build
@ -82,7 +83,7 @@ COPY --chown=$user:$user packages/server ./packages/server
# packages (but because it's already done it should be fast), and then run the
# postinstall scripts, as well as build scripts.
RUN BUILD_SEQUENCIAL=1 yarn install
RUN BUILD_SEQUENCIAL=1 yarn install --inline-builds
ENV RUNNING_IN_DOCKER=1
EXPOSE ${APP_PORT}