FROM nvidia/cuda:11.8.0-devel-ubuntu22.04 RUN apt update && apt install -y \ git \ build-essential \ libopenblas-dev \ wget \ python3-pip \ nodejs \ npm RUN useradd -m -u 1000 user USER user ENV HOME=/home/user \ PATH=/home/user/.local/bin:$PATH WORKDIR $HOME/app COPY --chown=user . $HOME/app RUN python3 -m pip install aphrodite-engine RUN wget -O part_a.gguf $MODEL_PART_A RUN wget -O part_b.gguf $MODEL_PART_B RUN cat part_a.gguf part_b.gguf > model.gguf RUN rm part_a.gguf part_b.gguf EXPOSE 7860 # Should expose on all network interfaces so 0.0.0.0 not only localhost CMD /bin/bash -c "/bin/python3 -m aphrodite.endpoints.openai.api_server $ENGINE_ARGS --port 7860 --host 0.0.0.0 --model $HOME/app/"