From 702ffdf61a519cf5e9ea8873997083029af5cb01 Mon Sep 17 00:00:00 2001 From: ThatOneCalculator Date: Wed, 3 Jan 2024 14:45:41 -0800 Subject: [PATCH] fix: :construction_worker: build Docker with Bun --- .github/workflows/bun.yaml | 2 +- .github/workflows/python.yaml | 2 +- Dockerfile | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/bun.yaml b/.github/workflows/bun.yaml index 7a136b4c6..d6bf3ca19 100644 --- a/.github/workflows/bun.yaml +++ b/.github/workflows/bun.yaml @@ -5,7 +5,7 @@ on: pull_request: jobs: build: - name: 'Format & Build' # Format, Lint, & Build + name: 'Format & Build Frontend' # Format, Lint, & Build env: PUBLIC_API_BASE_URL: '' runs-on: ubuntu-latest diff --git a/.github/workflows/python.yaml b/.github/workflows/python.yaml index 5666e4ae2..4d407393f 100644 --- a/.github/workflows/python.yaml +++ b/.github/workflows/python.yaml @@ -5,7 +5,7 @@ on: pull_request: jobs: build: - name: 'Format & Build' # Format, Lint, & Build + name: 'Format, Lint, & Build Backend' env: PUBLIC_API_BASE_URL: '' runs-on: ubuntu-latest diff --git a/Dockerfile b/Dockerfile index 2dd898136..00b0b10e5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ # syntax=docker/dockerfile:1 -FROM node:alpine as build +FROM imbios/bun-node:alpine as build ARG OLLAMA_API_BASE_URL='/ollama/api' RUN echo $OLLAMA_API_BASE_URL @@ -11,10 +11,10 @@ RUN echo $PUBLIC_API_BASE_URL WORKDIR /app COPY package.json package-lock.json ./ -RUN npm ci COPY . . -RUN npm run build +RUN bun install +RUN bun run build FROM python:3.11-slim-buster as base