forked from open-webui/open-webui
refactor: ♻️ bun-based dockerfile
This commit is contained in:
parent
cddfd11382
commit
b5598f759c
1 changed files with 5 additions and 5 deletions
10
Dockerfile
10
Dockerfile
|
@ -1,14 +1,14 @@
|
||||||
# syntax=docker/dockerfile:1
|
# syntax=docker/dockerfile:1
|
||||||
|
|
||||||
FROM node:alpine as build
|
FROM oven/bun:latest as build
|
||||||
|
|
||||||
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
|
||||||
|
|
||||||
|
@ -32,4 +32,4 @@ RUN pip3 install -r requirements.txt
|
||||||
|
|
||||||
COPY ./backend .
|
COPY ./backend .
|
||||||
|
|
||||||
CMD [ "sh", "start.sh"]
|
CMD [ "sh", "start.sh"]
|
||||||
|
|
Loading…
Reference in a new issue