mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-05-13 07:46:47 +00:00
🐳 ci: Build Docker Client Package With Data Provider Dist (#13097)
This commit is contained in:
parent
6b5596ec36
commit
b570ce4cd7
2 changed files with 37 additions and 0 deletions
36
.github/workflows/docker-smoke.yml
vendored
Normal file
36
.github/workflows/docker-smoke.yml
vendored
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
name: Docker Build Smoke Tests
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
pull_request:
|
||||
paths:
|
||||
- '.github/workflows/docker-smoke.yml'
|
||||
- '.dockerignore'
|
||||
- 'Dockerfile.multi'
|
||||
- 'package.json'
|
||||
- 'package-lock.json'
|
||||
- 'packages/client/**'
|
||||
- 'packages/data-provider/**'
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
client-package-target:
|
||||
name: Build Docker client package target
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 25
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
- name: Build client package target
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
context: .
|
||||
file: Dockerfile.multi
|
||||
platforms: linux/amd64
|
||||
push: false
|
||||
target: client-package-build
|
||||
|
|
@ -68,6 +68,7 @@ RUN npm run build
|
|||
FROM base AS client-package-build
|
||||
WORKDIR /app/packages/client
|
||||
COPY packages/client ./
|
||||
COPY --from=data-provider-build /app/packages/data-provider/dist /app/packages/data-provider/dist
|
||||
RUN npm run build
|
||||
|
||||
# Client build
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue