Skip to content

Commit

Permalink
Revert "Add cache to yarn install (#629)"
Browse files Browse the repository at this point in the history
This reverts commit edf2886.
  • Loading branch information
mzagaja committed Oct 8, 2024
1 parent 3a50b47 commit 3481943
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions frontend/front/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Stage 1: Use yarn to build the app
FROM node:18-alpine as builder
FROM node:18 as builder

ARG REACT_APP_API_URL
ENV REACT_APP_API_URL=$REACT_APP_API_URL
Expand All @@ -17,13 +17,8 @@ ARG REACT_APP_GIT_REF
ENV REACT_APP_GIT_REF=$REACT_APP_GIT_REF

WORKDIR /usr/src/app

COPY frontend/front/package.json frontend/front/yarn.lock ./

RUN --mount=type=cache,target=/usr/local/share/.cache/yarn/v6 \
yarn install --frozen-lockfile

COPY frontend/front/ ./
RUN yarn
RUN yarn build

# Stage 2: Copy the JS React SPA into the Nginx HTML directory
Expand Down

0 comments on commit 3481943

Please sign in to comment.