2024-01-03 07:30:29 +00:00
|
|
|
FROM fascinated/docker-images:node-pnpm-latest AS base
|
|
|
|
|
2024-01-03 07:25:17 +00:00
|
|
|
ENV NODE_ENV=production
|
|
|
|
WORKDIR /usr/src/app
|
2024-01-03 07:30:29 +00:00
|
|
|
|
2024-01-03 07:32:49 +00:00
|
|
|
COPY ["package.json", "pnpm-lock.yaml", "./"]
|
2024-01-03 07:30:29 +00:00
|
|
|
|
2024-01-03 07:37:37 +00:00
|
|
|
RUN pnpm install --production --silent
|
2024-01-03 07:30:29 +00:00
|
|
|
|
2024-01-06 09:28:06 +00:00
|
|
|
COPY . .
|
|
|
|
|
2024-01-03 07:39:03 +00:00
|
|
|
CMD pnpm run build && pnpm run start
|