-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
2 additions
and
2 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,5 +1,5 @@ | ||
# Stage 1: Build environment | ||
FROM node:20.12.2-alpine AS builder | ||
FROM node:20.12.2-bookworm-slim AS builder | ||
|
||
# Install PNPM globally with a specific version | ||
RUN npm install -g [email protected] | ||
|
@@ -20,7 +20,7 @@ COPY . . | |
RUN pnpm run build | ||
|
||
# Stage 2: Runtime environment | ||
FROM node:20.12.2-alpine AS runtime | ||
FROM node:20.12.2-bookworm-slim AS runtime | ||
|
||
# Copy only the built executable and set permissions | ||
COPY --from=builder /app/dist/bin/index.js /usr/local/bin/github-actions-runner | ||
|