Skip to content

Commit

Permalink
fix?
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardozgz committed Dec 16, 2024
1 parent 7d39c33 commit b488aec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/website/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ ENV NODE_ENV='production'\
NEXT_PUBLIC_SENTRY_ADMIN_URL='https://sentry.membercounter.app/'

RUN pnpm turbo run build --filter=@mc/website
RUN cp -r ./apps/website/public ./apps/website/.next/standalone/ && cp -r ./apps/website/.next/static ./apps/website/.next/standalone/.next/

FROM base AS runner
WORKDIR /app
Expand All @@ -53,12 +54,11 @@ RUN chown nextjs:nodejs .next
# https://nextjs.org/docs/advanced-features/output-file-tracing
COPY --from=installer --chown=nextjs:nodejs /app/apps/website/.next/standalone ./
COPY --from=installer --chown=nextjs:nodejs /app/apps/website/.next/static ./.next/static
COPY --from=installer --chown=nextjs:nodejs /app/apps/website/public ./public

USER nextjs

EXPOSE 3000
ENV PORT=3000
ENV HOSTNAME=0.0.0.0

CMD ["node", "server.js"]
CMD ["node", "/app/apps/website/server.js"]

0 comments on commit b488aec

Please sign in to comment.