Spaces:
Runtime error
Runtime error
gfjiogopdfgdfs
commited on
Update Dockerfile
Browse files- Dockerfile +6 -3
Dockerfile
CHANGED
@@ -4,8 +4,7 @@ RUN apt update && apt install git build-essential libopenblas-dev wget python3-p
|
|
4 |
RUN apt update && apt install -y wget
|
5 |
RUN apt-get install -y nodejs npm
|
6 |
RUN npm install -g localtunnel
|
7 |
-
|
8 |
-
RUN useradd -m -u 1000 user
|
9 |
# Switch to the "user" user
|
10 |
USER user
|
11 |
# Set home to the user's home directory
|
@@ -13,9 +12,13 @@ ENV HOME=/home/user \
|
|
13 |
PATH=/home/user/.local/bin:$PATH
|
14 |
# Set the working directory to the user's home directory
|
15 |
WORKDIR $HOME/app
|
|
|
|
|
|
|
16 |
# Copy the current directory contents into the container at $HOME/app setting the owner to the user
|
17 |
COPY --chown=user . $HOME/app
|
18 |
-
|
|
|
19 |
RUN pip install huggingface-hub hf-transfer
|
20 |
ENV HF_HUB_ENABLE_HF_TRANSFER=1
|
21 |
RUN huggingface-cli download TheBloke/goliath-120b-gptq --local-dir ~/goliath-gptq --local-dir-use-symlinks False --cache-dir ~/cache
|
|
|
4 |
RUN apt update && apt install -y wget
|
5 |
RUN apt-get install -y nodejs npm
|
6 |
RUN npm install -g localtunnel
|
7 |
+
|
|
|
8 |
# Switch to the "user" user
|
9 |
USER user
|
10 |
# Set home to the user's home directory
|
|
|
12 |
PATH=/home/user/.local/bin:$PATH
|
13 |
# Set the working directory to the user's home directory
|
14 |
WORKDIR $HOME/app
|
15 |
+
# Create a virtual environment and activate it
|
16 |
+
RUN python3 -m venv venv
|
17 |
+
ENV PATH="$HOME/app/venv/bin:$PATH"
|
18 |
# Copy the current directory contents into the container at $HOME/app setting the owner to the user
|
19 |
COPY --chown=user . $HOME/app
|
20 |
+
# Install the package in editable mode
|
21 |
+
RUN git clone https://github.com/lolcats399/aphrodite-engine && cd aphrodite-engine && pip3 install -e .
|
22 |
RUN pip install huggingface-hub hf-transfer
|
23 |
ENV HF_HUB_ENABLE_HF_TRANSFER=1
|
24 |
RUN huggingface-cli download TheBloke/goliath-120b-gptq --local-dir ~/goliath-gptq --local-dir-use-symlinks False --cache-dir ~/cache
|