File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# Multi-stage build for llms-py
2+ FROM oven/bun:latest as bun
23FROM python:3.11-slim as builder
34
45# Set working directory
@@ -29,6 +30,20 @@ FROM python:3.11-slim
2930# Set working directory
3031WORKDIR /app
3132
33+ # Install system dependencies and dotnet-sdk 10.0
34+ RUN apt-get update && apt-get install -y --no-install-recommends \
35+ wget \
36+ && wget https://packages.microsoft.com/config/debian/12/packages-microsoft-prod.deb -O packages-microsoft-prod.deb \
37+ && dpkg -i packages-microsoft-prod.deb \
38+ && rm packages-microsoft-prod.deb \
39+ && apt-get update \
40+ && apt-get install -y --no-install-recommends dotnet-sdk-10.0 \
41+ && rm -rf /var/lib/apt/lists/*
42+
43+ # Install bun
44+ COPY --from=bun /usr/local/bin/bun /usr/local/bin/bun
45+ RUN ln -s /usr/local/bin/bun /usr/local/bin/bunx
46+
3247# Create a non-root user
3348RUN useradd -m -u 1000 llms && \
3449 mkdir -p /home/llms/.llms && \
You can’t perform that action at this time.
0 commit comments