-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ use bun as package manager and runner for the docke rcontainer, plu…
…s some tweak on the github action
- Loading branch information
Showing
29 changed files
with
26,488 additions
and
10,901 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
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
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
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,7 +1,6 @@ | ||
node_modules | ||
npm-debug.log* | ||
yarn-error.log* | ||
dist | ||
!svg-only/dist | ||
build | ||
.env | ||
.env |
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,32 +1,27 @@ | ||
FROM node:20-slim as builder | ||
FROM oven/bun:1.2.2-slim as builder | ||
|
||
WORKDIR /app | ||
|
||
COPY package.json yarn.lock ./ | ||
COPY package.json bun.lock ./ | ||
|
||
COPY tsconfig.json ./ | ||
|
||
COPY packages packages | ||
|
||
RUN export YARN_CACHE_FOLDER="$(mktemp -d)" \ | ||
&& yarn install --frozen-lockfile \ | ||
&& rm -r "$YARN_CACHE_FOLDER" | ||
RUN bun install --no-cache | ||
|
||
RUN yarn build:action | ||
RUN bun run build:action | ||
|
||
|
||
|
||
|
||
|
||
FROM node:20-slim | ||
FROM oven/bun:1.2.2-slim | ||
|
||
WORKDIR /action-release | ||
|
||
RUN export YARN_CACHE_FOLDER="$(mktemp -d)" \ | ||
&& yarn add canvas@3.1.0 gifsicle@5.3.0 --no-lockfile \ | ||
&& rm -r "$YARN_CACHE_FOLDER" | ||
RUN bun add canvas@3.1.0 gifsicle@5.3.0 --no-lockfile --no-cache | ||
|
||
COPY --from=builder /app/packages/action/dist/ /action-release/ | ||
|
||
CMD ["node", "/action-release/index.js"] | ||
|
||
CMD ["bun", "/action-release/index.js"] |
Oops, something went wrong.