diff --git a/Dockerfile b/Dockerfile index f05c3e9..a9a7176 100644 --- a/Dockerfile +++ b/Dockerfile @@ -69,19 +69,19 @@ RUN npm install -g tsx WORKDIR /workspace # Copy built application from builder stage -COPY --from=builder /app/cli.js /app/cli.js +COPY --from=builder /app/dist /app/dist 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 -#!/bin/sh +# RUN cat << 'EOF' > /entrypoint.sh +# #!/bin/sh -/root/.bun/bin/bun /app/cli.js -c /workspace "$@" -EOF +# /root/.bun/bin/bun /app/dist/entrypoints/cli.js -c /workspace "$@" +# EOF -RUN chmod +x /entrypoint.sh +# RUN chmod +x /entrypoint.sh # Set the entrypoint -ENTRYPOINT ["/entrypoint.sh"] +ENTRYPOINT ["/root/.bun/bin/bun", "/app/dist/entrypoints/cli.js", "-c", "/workspace"] diff --git a/package.json b/package.json index 69fa46d..6357c20 100644 --- a/package.json +++ b/package.json @@ -95,6 +95,7 @@ "@types/jest": "^30.0.0", "@types/node": "^24.1.0", "bun-types": "latest", + "esbuild": "^0.25.9", "prettier": "^3.6.2", "typescript": "^5.9.2" }