|
FROM nvidia/cuda:11.8.0-devel-ubuntu20.04 |
|
|
|
ARG DEBIAN_FRONTEND=noninteractive |
|
|
|
RUN apt-get update && apt-get upgrade -y |
|
|
|
RUN apt-get update && apt-get install -y \ |
|
git \ |
|
curl \ |
|
software-properties-common \ |
|
&& add-apt-repository ppa:deadsnakes/ppa \ |
|
&& apt install -y python3.10 \ |
|
&& apt install -y python3.10-distutils \ |
|
&& rm -rf /var/lib/apt/lists/* |
|
|
|
|
|
|
|
|
|
RUN adduser --uid 1999 llmstudio |
|
USER llmstudio |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
WORKDIR /workspace |
|
RUN \ |
|
curl -sS https://bootstrap.pypa.io/get-pip.py | python3.10 && \ |
|
chmod -R a+w /home/llmstudio |
|
COPY Makefile . |
|
COPY Pipfile . |
|
COPY Pipfile.lock . |
|
RUN \ |
|
make setup && \ |
|
mkdir -p /home/llmstudio/mount && \ |
|
chmod -R a+w /home/llmstudio |
|
COPY . . |
|
|
|
ENV HOME=/home/llmstudio |
|
ENV H2O_WAVE_APP_ADDRESS=http://127.0.0.1:8756 |
|
ENV H2O_WAVE_MAX_REQUEST_SIZE=25MB |
|
ENV H2O_WAVE_NO_LOG=true |
|
ENV H2O_WAVE_PRIVATE_DIR="/download/@/workspace/output/download" |
|
EXPOSE 10101 |
|
ENTRYPOINT [ "python3.10", "-m", "pipenv", "run", "wave", "run", "--no-reload", "app" ] |
|
|