Lite_Recent / Dockerfile
chieh2's picture
initial commit
41066c2 unverified
raw
history blame contribute delete
521 Bytes
FROM ghcr.io/berriai/litellm-non_root:main-stable
USER root
RUN mkdir -p /.cache && chmod -R 777 /.cache
RUN apt-get clean && apt-get update && \
apt-get install -y curl && \
rm -rf /var/lib/apt/lists/*
COPY proxy_server_config.yaml /config/proxy_server_config.yaml
RUN --mount=type=secret,id=MODEL_CONFIG_URL,mode=0444,required=true \
curl -X GET $(cat /run/secrets/MODEL_CONFIG_URL) -o /config/model_config.yaml
RUN chmod -R 777 /config
CMD ["--port", "4000", "--config", "/config/proxy_server_config.yaml"]