generated from Fascinated/nextjs-13-template-with-tailwindcss
update image and usee pnpm
Some checks failed
Publish Docker Image / docker (push) Failing after 34s
Some checks failed
Publish Docker Image / docker (push) Failing after 34s
This commit is contained in:
parent
8befe6563a
commit
450775fe79
11
Dockerfile
11
Dockerfile
@ -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
4605
pnpm-lock.yaml
generated
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user