Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +2 -10
Dockerfile
CHANGED
@@ -5,27 +5,19 @@ RUN apt update && apt install -y wget
|
|
5 |
RUN apt install python3.10-venv -y
|
6 |
RUN apt-get install -y nodejs npm
|
7 |
RUN npm install -g localtunnel
|
8 |
-
|
9 |
# Set up a new user named "user" with user ID 1000
|
10 |
RUN useradd -m -u 1000 user
|
11 |
-
|
12 |
# Switch to the "user" user
|
13 |
USER user
|
14 |
-
|
15 |
# Set home to the user's home directory
|
16 |
ENV HOME=/home/user \
|
17 |
PATH=/home/user/.local/bin:$PATH
|
18 |
-
|
19 |
# Set the working directory to the user's home directory
|
20 |
WORKDIR $HOME/app
|
21 |
-
|
22 |
-
# Create a virtual environment and activate it
|
23 |
-
RUN python3 -m venv venv
|
24 |
-
ENV PATH="$HOME/app/venv/bin:$PATH"
|
25 |
# Copy the current directory contents into the container at $HOME/app setting the owner to the user
|
26 |
COPY --chown=user . $HOME/app
|
27 |
-
|
28 |
-
RUN git clone https://github.com/lolcats399/aphrodite-engine
|
29 |
RUN pip install huggingface-hub hf-transfer
|
30 |
ENV HF_HUB_ENABLE_HF_TRANSFER=1
|
31 |
RUN huggingface-cli download TheBloke/goliath-120b-gptq --local-dir ~/goliath-gptq --local-dir-use-symlinks False --cache-dir ~/cache
|
|
|
5 |
RUN apt install python3.10-venv -y
|
6 |
RUN apt-get install -y nodejs npm
|
7 |
RUN npm install -g localtunnel
|
|
|
8 |
# Set up a new user named "user" with user ID 1000
|
9 |
RUN useradd -m -u 1000 user
|
|
|
10 |
# Switch to the "user" user
|
11 |
USER user
|
|
|
12 |
# Set home to the user's home directory
|
13 |
ENV HOME=/home/user \
|
14 |
PATH=/home/user/.local/bin:$PATH
|
|
|
15 |
# Set the working directory to the user's home directory
|
16 |
WORKDIR $HOME/app
|
|
|
|
|
|
|
|
|
17 |
# Copy the current directory contents into the container at $HOME/app setting the owner to the user
|
18 |
COPY --chown=user . $HOME/app
|
19 |
+
RUN python3 -m pip install aphrodite-engine
|
20 |
+
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
|