Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +6 -31
Dockerfile
CHANGED
@@ -2,35 +2,10 @@ FROM python:3.8
|
|
2 |
|
3 |
COPY . /app
|
4 |
|
5 |
-
RUN
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
&& apt-get clean -y \
|
11 |
-
&& rm -rf /var/lib/apt/lists/*
|
12 |
|
13 |
-
|
14 |
-
ENV CONDA_DIR "${HOME}/miniconda"
|
15 |
-
ENV PATH="$CONDA_DIR/bin":$PATH
|
16 |
-
ENV CONDA_AUTO_UPDATE_CONDA=false
|
17 |
-
ENV PIP_DOWNLOAD_CACHE="$HOME/.pip/cache"
|
18 |
-
ENV TORTOISE_MODELS_DIR=/app/tortoise/models
|
19 |
-
|
20 |
-
RUN wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O /tmp/miniconda3.sh \
|
21 |
-
&& bash /tmp/miniconda3.sh -b -p "${CONDA_DIR}" -f -u \
|
22 |
-
&& "${CONDA_DIR}/bin/conda" init bash \
|
23 |
-
&& rm -f /tmp/miniconda3.sh \
|
24 |
-
&& echo ". '${CONDA_DIR}/etc/profile.d/conda.sh'" >> "${HOME}/.profile"
|
25 |
-
|
26 |
-
# --login option used to source bashrc (thus activating conda env) at every RUN statement
|
27 |
-
SHELL ["/bin/bash", "--login", "-c"]
|
28 |
-
|
29 |
-
RUN conda create --name tortoise python=3.9 numba inflect \
|
30 |
-
&& conda activate tortoise \
|
31 |
-
&& conda install pytorch torchvision torchaudio pytorch-cuda=11.7 -c pytorch -c nvidia \
|
32 |
-
&& conda install transformers=4.29.2 \
|
33 |
-
&& conda install streamlit \
|
34 |
-
&& cd /app \
|
35 |
-
&& python setup.py install \
|
36 |
-
&& streamlit run app.py
|
|
|
2 |
|
3 |
COPY . /app
|
4 |
|
5 |
+
RUN !pip3 install -r requirements.txt --no-deps
|
6 |
+
!pip3 install -e .
|
7 |
+
!pip3 install git+https://github.com/152334H/BigVGAN.git
|
8 |
+
!pip uninstall transformers
|
9 |
+
!pip install transformers==4.29.2
|
|
|
|
|
10 |
|
11 |
+
ENTRYPOINT["/app/tortoise/api.py"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|