Skip to content

Commit

Permalink
hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
lukachi committed Feb 20, 2025
1 parent 087f6ac commit e5e53da
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,16 @@ EXPOSE 3000
FROM base as builder
WORKDIR /app
COPY . .
RUN yarn install
RUN yarn install --immutable
RUN yarn build

FROM base as production
WORKDIR /app
ENV NODE_ENV=production
COPY --from=builder --chown=nextjs:nodejs /app/.next ./.next
COPY --from=builder /app/node_modules ./node_modules
COPY --from=builder /app/.yarn ./.yarn
COPY --from=builder /app/yarnrc.yml ./yarnrc.yml
COPY --from=builder /app/package.json ./package.json
COPY --from=builder /app/public ./public
RUN yarn install --immutable
RUN addgroup -g 1001 -S nodejs
RUN adduser -S nextjs -u 1001
USER nextjs
Expand All @@ -28,5 +25,5 @@ CMD yarn start
FROM base as dev
ENV NODE_ENV=development
COPY . .
RUN yarn install
RUN yarn install --immutable
CMD yarn dev

0 comments on commit e5e53da

Please sign in to comment.