Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
gabalafou authored Sep 23, 2024
1 parent d74bd4d commit 27e15ca
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ RUN corepack enable
WORKDIR /usr/src/app

COPY . .
# Use the --immutable flag as a precaution. This guarantees that the Docker
# build will fail if `yarn install` results in a different yarn.lock file than
# the one checked into the repo. This could happen for example if the version of
# Yarn used in one dev environment differs from the version used here.
RUN --mount=type=cache,target=/root/.yarn YARN_CACHE_FOLDER=/root/.yarn \
yarn install --immutable --network-timeout 600000 && \
if [[ ! -f ".env" ]]; then mv .env.example .env; fi;
Expand Down

0 comments on commit 27e15ca

Please sign in to comment.