Skip to content

Commit

Permalink
one last yarn and npm swap
Browse files Browse the repository at this point in the history
  • Loading branch information
flamekiller22 committed Jan 10, 2024
1 parent 4b5403c commit c09d2bc
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,16 @@ COPY . .
# Uncomment the following line in case you want to disable telemetry during the build.
ENV NEXT_TELEMETRY_DISABLED 1

RUN yarn build
# RUN yarn build

# If using npm comment out above and use below instead
# RUN npm run build
RUN npm run build

# Production image, copy all the files and run next
FROM node:21-alpine AS runner
WORKDIR /app

ENV NODE_ENV production
# Uncomment the following line in case you want to disable telemetry during runtime.
# ENV NEXT_TELEMETRY_DISABLED 1

RUN addgroup --system --gid 1001 nodejs
RUN adduser --system --uid 1001 nextjs
Expand Down

0 comments on commit c09d2bc

Please sign in to comment.