am idiot
This commit is contained in:
parent
4874deb21c
commit
db58b7a356
@ -16,6 +16,9 @@ RUN \
|
|||||||
# Copy cached files
|
# Copy cached files
|
||||||
COPY node_modules ./
|
COPY node_modules ./
|
||||||
|
|
||||||
|
# Install dependencies
|
||||||
|
RUN yarn
|
||||||
|
|
||||||
# Rebuild the source code only when needed
|
# Rebuild the source code only when needed
|
||||||
FROM node:18-alpine AS builder
|
FROM node:18-alpine AS builder
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
@ -27,15 +30,9 @@ COPY . .
|
|||||||
# Uncomment the following line in case you want to disable telemetry during the build.
|
# Uncomment the following line in case you want to disable telemetry during the build.
|
||||||
ENV NEXT_TELEMETRY_DISABLED 1
|
ENV NEXT_TELEMETRY_DISABLED 1
|
||||||
|
|
||||||
# Install dependencies
|
|
||||||
RUN yarn
|
|
||||||
|
|
||||||
# Build the project
|
# Build the project
|
||||||
RUN yarn build
|
RUN yarn build
|
||||||
|
|
||||||
# If using npm comment out above and use below instead
|
|
||||||
# RUN npm run build
|
|
||||||
|
|
||||||
# Production image, copy all the files and run next
|
# Production image, copy all the files and run next
|
||||||
FROM node:18-alpine AS runner
|
FROM node:18-alpine AS runner
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
Reference in New Issue
Block a user