Merge pull request #67 from xiaomao87/fix-dockerfile

Dockerfile: fix runtime error `Module not found "/app/src/entrypoints/cli.tsx"`
This commit is contained in:
Xinlu Lai 2025-09-03 00:49:12 +08:00 committed by GitHub
commit 53234ba2d9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -72,6 +72,7 @@ WORKDIR /workspace
COPY --from=builder /app/cli.js /app/cli.js
COPY --from=builder /app/package.json /app/package.json
COPY --from=builder /app/node_modules /app/node_modules
COPY --from=builder /app/src /app/src
# Create the entrypoint script
RUN cat << 'EOF' > /entrypoint.sh
@ -83,4 +84,4 @@ EOF
RUN chmod +x /entrypoint.sh
# Set the entrypoint
ENTRYPOINT ["/entrypoint.sh"]
ENTRYPOINT ["/entrypoint.sh"]