Unverified Commit 702ffdf6 authored by ThatOneCalculator's avatar ThatOneCalculator
Browse files

fix: 👷 build Docker with Bun

parent 6ce41c71
...@@ -5,7 +5,7 @@ on: ...@@ -5,7 +5,7 @@ on:
pull_request: pull_request:
jobs: jobs:
build: build:
name: 'Format & Build' # Format, Lint, & Build name: 'Format & Build Frontend' # Format, Lint, & Build
env: env:
PUBLIC_API_BASE_URL: '' PUBLIC_API_BASE_URL: ''
runs-on: ubuntu-latest runs-on: ubuntu-latest
......
...@@ -5,7 +5,7 @@ on: ...@@ -5,7 +5,7 @@ on:
pull_request: pull_request:
jobs: jobs:
build: build:
name: 'Format & Build' # Format, Lint, & Build name: 'Format, Lint, & Build Backend'
env: env:
PUBLIC_API_BASE_URL: '' PUBLIC_API_BASE_URL: ''
runs-on: ubuntu-latest runs-on: ubuntu-latest
......
# syntax=docker/dockerfile:1 # syntax=docker/dockerfile:1
FROM node:alpine as build FROM imbios/bun-node:alpine as build
ARG OLLAMA_API_BASE_URL='/ollama/api' ARG OLLAMA_API_BASE_URL='/ollama/api'
RUN echo $OLLAMA_API_BASE_URL RUN echo $OLLAMA_API_BASE_URL
...@@ -11,10 +11,10 @@ RUN echo $PUBLIC_API_BASE_URL ...@@ -11,10 +11,10 @@ RUN echo $PUBLIC_API_BASE_URL
WORKDIR /app WORKDIR /app
COPY package.json package-lock.json ./ COPY package.json package-lock.json ./
RUN npm ci
COPY . . COPY . .
RUN npm run build RUN bun install
RUN bun run build
FROM python:3.11-slim-buster as base FROM python:3.11-slim-buster as base
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment