Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +1 -7
Dockerfile
CHANGED
@@ -3,7 +3,6 @@ FROM nvidia/cuda:11.8.0-devel-ubuntu22.04
|
|
3 |
RUN apt update && apt install git build-essential libopenblas-dev wget python3-pip -y
|
4 |
RUN apt update && apt install -y wget
|
5 |
RUN apt-get install -y nodejs npm
|
6 |
-
RUN npm install -g localtunnel
|
7 |
# Set up a new user named "user" with user ID 1000
|
8 |
RUN useradd -m -u 1000 user
|
9 |
# Switch to the "user" user
|
@@ -21,10 +20,5 @@ Run git clone https://github.com/lolcats399/aphrodite-engine
|
|
21 |
RUN pip install huggingface-hub hf-transfer
|
22 |
ENV HF_HUB_ENABLE_HF_TRANSFER=1
|
23 |
RUN huggingface-cli download TheBloke/goliath-120b-gptq --local-dir ~/goliath-gptq --local-dir-use-symlinks False --cache-dir ~/cache
|
24 |
-
RUN echo "#!/bin/bash" > startup.sh
|
25 |
-
RUN echo "lt --port 7860 &" >> startup.sh
|
26 |
-
RUN echo "public_ip=\$(wget -qO- https://loca.lt/mytunnelpassword)" >> startup.sh
|
27 |
-
RUN echo "echo \"Public IP: \$public_ip\"" >> startup.sh
|
28 |
-
RUN chmod +x startup.sh
|
29 |
EXPOSE 7860
|
30 |
-
CMD
|
|
|
3 |
RUN apt update && apt install git build-essential libopenblas-dev wget python3-pip -y
|
4 |
RUN apt update && apt install -y wget
|
5 |
RUN apt-get install -y nodejs npm
|
|
|
6 |
# Set up a new user named "user" with user ID 1000
|
7 |
RUN useradd -m -u 1000 user
|
8 |
# Switch to the "user" user
|
|
|
20 |
RUN pip install huggingface-hub hf-transfer
|
21 |
ENV HF_HUB_ENABLE_HF_TRANSFER=1
|
22 |
RUN huggingface-cli download TheBloke/goliath-120b-gptq --local-dir ~/goliath-gptq --local-dir-use-symlinks False --cache-dir ~/cache
|
|
|
|
|
|
|
|
|
|
|
23 |
EXPOSE 7860
|
24 |
+
CMD python3 $HOME/app/aphrodite-engine/aphrodite/endpoints/kobold/api_server.py $ENGINE_ARGS --port 7860 -h --model ~/goliath-gptq"
|