Skip to content

Commit

Permalink
Fix dockerfile, attempt to prune with bun
Browse files Browse the repository at this point in the history
  • Loading branch information
tomouchuu committed Nov 3, 2023
1 parent 23e3367 commit 7ed6c4c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/deployments.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@ on:
- main
pull_request: {}

permissions:
actions: write
contents: read
permissions: write-all

env:
CI: true
Expand Down
6 changes: 3 additions & 3 deletions apps/backend/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
FROM node:18-alpine AS node
FROM oven/bun:alpine AS bun

FROM base AS builder
FROM bun AS builder
RUN apk add --no-cache libc6-compat
RUN apk update
RUN pip3 install streamlink
WORKDIR /app
RUN yarn global add turbo
RUN bun install --global turbo
RUN bunx @turbo/workspaces@latest convert ./ yarn --skip-install
COPY . .
RUN turbo prune --scope @haishin/backend --docker

Expand Down
6 changes: 3 additions & 3 deletions apps/frontend/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
FROM node:18-alpine AS node
FROM oven/bun:alpine AS bun

FROM node AS builder
FROM bun AS builder
RUN apk add --no-cache libc6-compat
RUN apk update
WORKDIR /app
RUN yarn global add turbo
RUN bun install --global turbo
RUN bunx @turbo/workspaces@latest convert ./ yarn --skip-install
COPY . .
RUN turbo prune --scope @haishin/frontend --docker

Expand Down

0 comments on commit 7ed6c4c

Please sign in to comment.