Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ typings
# Output of 'npm pack'
*.tgz

# Lock files
yarn.lock
bun.lockb

# Yarn Integrity file
.yarn-integrity

Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
push:
branches:
- dev
- bun
env:
REGION_ID: cn-beijing
REGISTRY: registry.cn-beijing.aliyuncs.com
Expand Down Expand Up @@ -56,7 +57,7 @@ jobs:
NEXT_PUBLIC_SF_NEXT_CHAT_CLIENT_ID=${{ vars.NEXT_PUBLIC_SF_NEXT_CHAT_CLIENT_ID }}
tags: |
${{ env.REGISTRY }}/${{ env.NAMESPACE }}/next-chat-sf
oneflowinc/silicon-chat:latest
oneflowinc/silicon-chat:latest-bun
oneflowinc/silicon-chat:${{ github.sha }}
cache-from: type=gha
cache-to: type=gha,mode=max
Expand Down
11 changes: 5 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
FROM node:18-alpine AS base
FROM oven/bun:1-alpine AS base

FROM base AS deps

RUN apk add --no-cache libc6-compat
RUN apk add --no-cache libc6-compat curl bash

WORKDIR /app

COPY package.json yarn.lock ./
COPY package.json bun.lock ./

RUN yarn config set registry 'https://registry.npmmirror.com/'
RUN yarn install
RUN bun install --frozen-lockfile

FROM base AS builder
ARG NEXT_PUBLIC_SF_NEXT_CHAT_CLIENT_ID
Expand All @@ -24,7 +23,7 @@ WORKDIR /app
COPY --from=deps /app/node_modules ./node_modules
COPY . .

RUN yarn build
RUN bun run build

FROM base AS runner
WORKDIR /app
Expand Down
Loading