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 b488aec commit 50e70ee
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions apps/website/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +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 @@ -52,13 +51,14 @@ RUN chown nextjs:nodejs .next

# Automatically leverage output traces to reduce image size
# 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/.next/standalone/apps/website /app
COPY --from=installer --chown=nextjs:nodejs /app/apps/website/.next/static /app/.next/static
COPY --from=installer --chown=nextjs:nodejs /app/apps/website/public /app/public

USER nextjs

EXPOSE 3000
ENV PORT=3000
ENV HOSTNAME=0.0.0.0

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

0 comments on commit 50e70ee

Please sign in to comment.