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
|
ENV NODE_ENV=production
|
||||||
WORKDIR /usr/src/app
|
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 and package-lock.json separately to fully utilize Docker layer caching
|
||||||
COPY package.json ./
|
COPY package.json ./
|
||||||
COPY package-lock.json ./
|
COPY pnpm-lock.yaml ./
|
||||||
RUN npm ci --production --silent && npm cache clean --force
|
RUN pnpm ci --production --silent && pnpm cache clean --force
|
||||||
|
|
||||||
# Opt out of Next.js telemetry
|
# Opt out of Next.js telemetry
|
||||||
RUN npx next telemetry disable
|
RUN npx next telemetry disable
|
||||||
@ -18,7 +15,7 @@ RUN npx next telemetry disable
|
|||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
# Remove development dependencies
|
# Remove development dependencies
|
||||||
RUN npm prune --production
|
RUN pnpm prune --production
|
||||||
|
|
||||||
# Environment Variables
|
# Environment Variables
|
||||||
ENV NODE_ENV=production
|
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