-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(Dockerfile): simplify Dockerfile by combining COPY commands and …
…add entrypoint script for better process management feat(entrypoint.sh): create entrypoint script to handle dependency installation and application startup
- Loading branch information
Showing
2 changed files
with
10 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,13 @@ | ||
FROM oven/bun:latest as base | ||
|
||
# Copy the lock and package file | ||
COPY bun.lockb . | ||
COPY package.json . | ||
|
||
# Install dependencies | ||
RUN bun install | ||
|
||
RUN ls -al node_modules/@actions/core | ||
COPY bun.lockb package.json ./ | ||
|
||
# Copy source code | ||
COPY src ./src | ||
|
||
# Run the action | ||
CMD ["bun", "run", "src/index.ts"] | ||
COPY entrypoint.sh /entrypoint.sh | ||
|
||
RUN chmod +x /entrypoint.sh | ||
|
||
ENTRYPOINT ["/entrypoint.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/sh -l | ||
|
||
bun install | ||
bun run src/index.ts |