From 1554b3dd108171762125f2bede8293bcf52a6ac6 Mon Sep 17 00:00:00 2001 From: Bieber Date: Tue, 25 Jun 2024 19:00:09 +0700 Subject: [PATCH] fix: logs not show in container (#675) * fix: logs not show in container * chore: move useless copy --- dockers/teable/Dockerfile | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/dockers/teable/Dockerfile b/dockers/teable/Dockerfile index ccb5e7d9d..ca5ca6b31 100644 --- a/dockers/teable/Dockerfile +++ b/dockers/teable/Dockerfile @@ -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"]