mirror of
https://github.com/open-webui/terminals.git
synced 2026-11-22 21:50:42 -05:00
25 lines
512 B
Docker
25 lines
512 B
Docker
# -- Stage 1: Build the SvelteKit frontend --
|
|
FROM node:20-slim AS frontend
|
|
|
|
WORKDIR /app/frontend
|
|
COPY terminals/frontend/package.json terminals/frontend/package-lock.json ./
|
|
RUN npm ci
|
|
COPY terminals/frontend/ .
|
|
RUN npm run build
|
|
|
|
# -- Stage 2: Python application --
|
|
FROM python:3.12-slim
|
|
|
|
WORKDIR /app
|
|
|
|
COPY . .
|
|
# Copy built frontend assets from stage 1
|
|
COPY --from=frontend /app/frontend/build ./terminals/frontend/build
|
|
|
|
RUN pip install --no-cache-dir .
|
|
|
|
EXPOSE 3000
|
|
|
|
ENTRYPOINT ["terminals"]
|
|
CMD ["serve"]
|