fix: logs not show in container (#675)

* fix: logs not show in container

* chore: move useless copy
This commit is contained in:
Bieber 2024-06-25 19:00:09 +07:00 committed by GitHub
parent a2f48f4597
commit 1554b3dd10
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -85,7 +85,9 @@ FROM node:${NODE_VERSION}-bookworm-slim AS runner
ENV TZ=UTC \
NODE_ENV=production \
PORT=${NEXTJS_APP_PORT:-3000}
PORT=${NEXTJS_APP_PORT:-3000}\
BRAND_NAME=teable\
NEXTJS_DIR=apps/nextjs-app
RUN set -ex; \
npm install zx -g; \
@ -157,11 +159,6 @@ COPY --from=post-builder --chown=nodejs:nodejs /app/packages ./packages
COPY --from=post-builder --chown=nodejs:nodejs /app/node_modules ./node_modules
COPY --from=post-builder --chown=nodejs:nodejs /app/package.json ./package.json
COPY --chown=nodejs:nodejs scripts/start.mjs ./scripts/start.mjs
EXPOSE ${PORT}
COPY scripts/entrypoint/docker-entrypoint.sh /
ENTRYPOINT ["/docker-entrypoint.sh"]
CMD ["scripts/start.mjs"]
ENTRYPOINT ["node", "apps/nestjs-backend/dist/index.js"]