Skip to content

Commit

Permalink
[fix] 💚 fix yarn error in dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
dappsar committed Dec 18, 2024
1 parent 67b5a6b commit 0ab851d
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
@@ -1,7 +1,10 @@
FROM node:18-alpine AS deps
WORKDIR /app
COPY package.json yarn.lock ./
RUN apk add --no-cache libc6-compat && npm i -g yarn && yarn install --frozen-lockfile
RUN apk add --no-cache libc6-compat bash curl && \
curl -o- -L https://yarnpkg.com/install.sh | bash && \
export PATH="$PATH:$(yarn global bin)" && \
yarn install --frozen-lockfile
#
FROM node:18-alpine AS builder
WORKDIR /app
Expand Down

0 comments on commit 0ab851d

Please sign in to comment.