chore(docker): update Dockerfile to copy built application from dist and set entrypoint correctly\n\n- Adjusted COPY command to reference the new dist directory\n- Updated entrypoint to use the correct path for cli.js
This commit is contained in:
parent
d0d1dca009
commit
fbb2db6963
14
Dockerfile
14
Dockerfile
@ -69,19 +69,19 @@ RUN npm install -g tsx
|
|||||||
WORKDIR /workspace
|
WORKDIR /workspace
|
||||||
|
|
||||||
# Copy built application from builder stage
|
# 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/package.json /app/package.json
|
||||||
COPY --from=builder /app/node_modules /app/node_modules
|
COPY --from=builder /app/node_modules /app/node_modules
|
||||||
COPY --from=builder /app/src /app/src
|
COPY --from=builder /app/src /app/src
|
||||||
|
|
||||||
# Create the entrypoint script
|
# Create the entrypoint script
|
||||||
RUN cat << 'EOF' > /entrypoint.sh
|
# RUN cat << 'EOF' > /entrypoint.sh
|
||||||
#!/bin/sh
|
# #!/bin/sh
|
||||||
|
|
||||||
/root/.bun/bin/bun /app/cli.js -c /workspace "$@"
|
# /root/.bun/bin/bun /app/dist/entrypoints/cli.js -c /workspace "$@"
|
||||||
EOF
|
# EOF
|
||||||
|
|
||||||
RUN chmod +x /entrypoint.sh
|
# RUN chmod +x /entrypoint.sh
|
||||||
|
|
||||||
# Set the entrypoint
|
# Set the entrypoint
|
||||||
ENTRYPOINT ["/entrypoint.sh"]
|
ENTRYPOINT ["/root/.bun/bin/bun", "/app/dist/entrypoints/cli.js", "-c", "/workspace"]
|
||||||
|
|||||||
@ -95,6 +95,7 @@
|
|||||||
"@types/jest": "^30.0.0",
|
"@types/jest": "^30.0.0",
|
||||||
"@types/node": "^24.1.0",
|
"@types/node": "^24.1.0",
|
||||||
"bun-types": "latest",
|
"bun-types": "latest",
|
||||||
|
"esbuild": "^0.25.9",
|
||||||
"prettier": "^3.6.2",
|
"prettier": "^3.6.2",
|
||||||
"typescript": "^5.9.2"
|
"typescript": "^5.9.2"
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user