Skip to content

Commit

Permalink
fix(docker): add yarn 2 support
Browse files Browse the repository at this point in the history
  • Loading branch information
pahaz committed May 11, 2024
1 parent db3ec07 commit 3b6e8e9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,10 @@ RUN echo "# Build time .env config!" >> /home/app/.env && \
echo "DATABASE_URL=undefined" >> /home/app/.env && \
echo "NODE_ENV=production" >> /home/app/.env
# Cache packages!
RUN set -ex && yarn install
RUN set -ex && \
&& corepack enable \
&& yarn set version stable \
&& yarn install
ADD --chown=app:app . /home/app
RUN set -ex && \
yarn build && \
Expand Down

0 comments on commit 3b6e8e9

Please sign in to comment.