fix(docker): fix yarn cache folder

Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
Tilman Vatteroth 2023-03-02 21:18:13 +01:00
parent 82b72ab3a3
commit 86de2924bc
2 changed files with 2 additions and 2 deletions

View file

@ -16,7 +16,7 @@ FROM docker.io/node:19-alpine@sha256:667dc6ed8fc6623ccd21cb5fa355c90f848daaf5d6d
RUN apk add --no-cache tini
ENTRYPOINT ["tini", "--"]
ENV YARN_CACHE_FOLDER /tmp/.yarn
ENV YARN_CACHE_FOLDER=/tmp/.yarn
## Stage 1: Code with all dependencies
FROM base as code-with-deps

View file

@ -15,7 +15,7 @@ ENV NODE_ENV=production
ENV NEXT_TELEMETRY_DISABLED=1
ARG BUILD_VERSION=CLIENT_VERSION_MISSING
ENV YARN_CACHE_FOLDER /tmp/.yarn
ENV YARN_CACHE_FOLDER=/tmp/.yarn
USER node
WORKDIR /usr/src/app