🔪🐛 Fixed pnpm in Dockerfile, moved config to src
All checks were successful
Deploy application / deploy (push) Successful in 10s

This commit is contained in:
2025-02-09 13:01:34 +01:00
parent c5b1ec20d6
commit 3c6cb193eb
10 changed files with 16 additions and 11 deletions

View File

@ -1,8 +1,14 @@
FROM node:22-slim
LABEL authors="Martin Berg Alstad"
COPY . .
COPY . ./app
WORKDIR ./app
RUN --mount=type=cache,id=npm,target=/store npm install --omit=dev --frozen-lockfile
ENV PNPM_HOME="/pnpm"
ENV PATH="$PNPM_HOME:$PATH"
RUN corepack enable pnpm
RUN corepack prepare pnpm@9.15.3 --activate
RUN npm i -g corepack@latest
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --prod --recursive --frozen-lockfile
ENTRYPOINT ["npm", "run", "start-prod"]
ENTRYPOINT ["pnpm", "start-prod"]