🔪🐛 Fixed pnpm in Dockerfile, moved config to src
All checks were successful
Deploy application / deploy (push) Successful in 10s
All checks were successful
Deploy application / deploy (push) Successful in 10s
This commit is contained in:
12
Dockerfile
12
Dockerfile
@ -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"]
|
Reference in New Issue
Block a user