diff --git a/apps/frontend/Dockerfile b/apps/frontend/Dockerfile index ac9117c..7c816b9 100644 --- a/apps/frontend/Dockerfile +++ b/apps/frontend/Dockerfile @@ -19,10 +19,6 @@ RUN apk update RUN apk add --no-cache python3 make g++ gcc pkgconfig pixman cairo-dev libjpeg-turbo-dev pango-dev giflib-dev WORKDIR /app -# First install the dependencies (as they change less often) -COPY --from=builder /app/out/json/ . -RUN pnpm install --frozen-lockfile --quiet - # Add the commit hash ARG GIT_REV ENV GIT_REV=${GIT_REV} @@ -34,6 +30,10 @@ ENV SENTRY_AUTH_TOKEN=${SENTRY_AUTH_TOKEN} ENV NODE_ENV=production ENV NEXT_TELEMETRY_DISABLED=1 +# First install the dependencies (as they change less often) +COPY --from=builder /app/out/json/ . +RUN pnpm install --frozen-lockfile --quiet + # Build the project COPY --from=builder /app/out/full/ . RUN pnpm turbo run build --filter=frontend...