Skip to content

Commit

Permalink
ci: update bun base image to slim version & fix r2 upload
Browse files Browse the repository at this point in the history
  • Loading branch information
erguotou520 committed Feb 14, 2024
1 parent 44f5a29 commit 23b0f71
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-chrome-ext.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
r2-access-key-id: ${{ secrets.R2_ACCESS_KEY_ID }}
r2-secret-access-key: ${{ secrets.R2_SECRET_ACCESS_KEY }}
r2-bucket: ${{ secrets.R2_BUCKET }}
source-dir: build
source-dir: packages/chrome-ext/build
destination-dir: ./
# - name: Browser Platform Publish
# uses: PlasmoHQ/bpp@v3
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
FROM oven/bun:1 as builder
FROM oven/bun:1-slim as builder
WORKDIR /app
COPY packages/server/package.json /app/package.json
RUN bun install
COPY packages/server/ /app/
RUN bun install

# copy production dependencies and source code into final image
FROM oven/bun:1 AS release
FROM oven/bun:1-slim AS release
WORKDIR /app
COPY --from=builder /app/ /app/
USER bun
Expand Down

0 comments on commit 23b0f71

Please sign in to comment.