diff --git a/Dockerfile b/Dockerfile index d28d5ba..abd8190 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"] diff --git a/entrypoint.sh b/entrypoint.sh new file mode 100644 index 0000000..3c8ce70 --- /dev/null +++ b/entrypoint.sh @@ -0,0 +1,4 @@ +#!/bin/sh -l + +bun install +bun run src/index.ts \ No newline at end of file