Spaces:
Build error
Build error
Commit
·
aed849d
1
Parent(s):
1ce0ef5
fix docker
Browse files- Dockerfile +5 -3
Dockerfile
CHANGED
|
@@ -1,6 +1,8 @@
|
|
| 1 |
FROM continuumio/miniconda3
|
| 2 |
|
| 3 |
-
|
|
|
|
|
|
|
| 4 |
|
| 5 |
RUN apt-get update && apt-get install --no-install-recommends -y \
|
| 6 |
build-essential \
|
|
@@ -21,7 +23,7 @@ RUN conda install -c conda-forge cudatoolkit-dev -y
|
|
| 21 |
ENV CUDA_HOME=$CONDA_PREFIX/pkgs/cuda-toolkit/
|
| 22 |
RUN pip install "git+https://github.com/facebookresearch/pytorch3d.git@stable"
|
| 23 |
|
| 24 |
-
RUN wget https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/resolve/main/sd_xl_base_1.0.safetensors -P
|
| 25 |
-
RUN wget https://huggingface.co/stabilityai/sdxl-vae/resolve/main/sdxl_vae.safetensors -P
|
| 26 |
|
| 27 |
ENTRYPOINT ["conda", "run", "--no-capture-output", "-n", "pose", "python", "app.py", "--server.port", "7860", "--server.address", "0.0.0.0"]
|
|
|
|
| 1 |
FROM continuumio/miniconda3
|
| 2 |
|
| 3 |
+
COPY . /code
|
| 4 |
+
|
| 5 |
+
WORKDIR /code
|
| 6 |
|
| 7 |
RUN apt-get update && apt-get install --no-install-recommends -y \
|
| 8 |
build-essential \
|
|
|
|
| 23 |
ENV CUDA_HOME=$CONDA_PREFIX/pkgs/cuda-toolkit/
|
| 24 |
RUN pip install "git+https://github.com/facebookresearch/pytorch3d.git@stable"
|
| 25 |
|
| 26 |
+
RUN wget https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/resolve/main/sd_xl_base_1.0.safetensors -P pretrained-models
|
| 27 |
+
RUN wget https://huggingface.co/stabilityai/sdxl-vae/resolve/main/sdxl_vae.safetensors -P pretrained-models
|
| 28 |
|
| 29 |
ENTRYPOINT ["conda", "run", "--no-capture-output", "-n", "pose", "python", "app.py", "--server.port", "7860", "--server.address", "0.0.0.0"]
|