update image and usee pnpm
Some checks failed
Publish Docker Image / docker (push) Failing after 34s

This commit is contained in:
Lee 2023-10-15 01:46:09 +01:00
parent 8befe6563a
commit 450775fe79
2 changed files with 4609 additions and 7 deletions

@ -1,15 +1,12 @@
FROM node:lts-slim
FROM fascinated/docker-images:node-latest
ENV NODE_ENV=production
WORKDIR /usr/src/app
RUN apt update
RUN DEBIAN_FRONTEND=noninteractive apt install wget -y
# Copy package.json and package-lock.json separately to fully utilize Docker layer caching
COPY package.json ./
COPY package-lock.json ./
RUN npm ci --production --silent && npm cache clean --force
COPY pnpm-lock.yaml ./
RUN pnpm ci --production --silent && pnpm cache clean --force
# Opt out of Next.js telemetry
RUN npx next telemetry disable
@ -18,7 +15,7 @@ RUN npx next telemetry disable
COPY . .
# Remove development dependencies
RUN npm prune --production
RUN pnpm prune --production
# Environment Variables
ENV NODE_ENV=production

4605
pnpm-lock.yaml generated Normal file

File diff suppressed because it is too large Load Diff