@@ -46,17 +46,21 @@ RUN make setup && chmod -R 777 /workspace/.venv
4646ENV PATH=/workspace/.venv/bin:$PATH
4747
4848# We need to create a mount point for the user to mount their volume
49- # All persistent data lives in /home/llmstudio/ mount
50- RUN mkdir -p /home/llmstudio /mount
51- ENV H2O_LLM_STUDIO_WORKDIR=/home/llmstudio/ mount
49+ # All persistent data lives in /mount
50+ # RUN mkdir -p /mount
51+ ENV H2O_LLM_STUDIO_WORKDIR=/mount
5252
5353# Download the demo datasets and place in the /workspace/demo directory
5454# Set the environment variable for the demo datasets
5555ENV H2O_LLM_STUDIO_DEMO_DATASETS=/workspace/demo
5656COPY llm_studio/download_default_datasets.py /workspace/
5757RUN python download_default_datasets.py
5858
59- COPY . /workspace
59+ COPY ./llm_studio /workspace/llm_studio
60+ COPY ./prompts /workspace/prompts
61+ COPY ./model_cards /workspace/model_cards
62+ COPY ./LICENSE /workspace/LICENSE
63+ COPY ./entrypoint.sh /workspace/entrypoint.sh
6064
6165# Remove unnecessary packages remove build packages again
6266# Prevent removal of cuda packages
@@ -67,22 +71,20 @@ RUN apt-get purge -y git curl python3.10-distutils software-properties-common \
6771
6872USER llmstudio
6973
74+ ENV HF_HOME=/mount/huggingface
75+ ENV TRITON_CACHE_DIR=/mount/.triton/cache
76+
7077ENV HF_HUB_DISABLE_TELEMETRY=1
7178ENV DO_NOT_TRACK=1
7279
7380# Set the environment variables for the wave server
7481ENV H2O_WAVE_APP_ADDRESS=http://127.0.0.1:8756
7582ENV H2O_WAVE_MAX_REQUEST_SIZE=25MB
7683ENV H2O_WAVE_NO_LOG=true
77- ENV H2O_WAVE_PRIVATE_DIR="/download/@/home/llmstudio/ mount/output/download"
84+ ENV H2O_WAVE_PRIVATE_DIR="/download/@/mount/output/download"
7885
7986USER root
8087
81- # Make all of the files in the llmstudio directory read & writable for all users so that the
82- # application can install other (non-persisted) new packages and other things
83- # if it wants to. e.g. triton uses /home/llmstudio/.triton as a cache directory.
84- RUN chmod -R 777 /home/llmstudio
85-
8688# Make the entrypoint.sh script executable by all users
8789RUN chmod 755 /workspace/entrypoint.sh
8890
0 commit comments