Skip to content

Commit 0d42b55

Browse files
authored
Update Dockerfile-sd-scripts
1 parent 3341992 commit 0d42b55

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

Dockerfile-sd-scripts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,10 @@ WORKDIR /app
99
RUN wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh && bash Miniconda3-latest-Linux-x86_64.sh -b -p /app/conda && rm -rf Miniconda3-latest-Linux-x86_64.sh
1010
RUN /app/conda/bin/conda init
1111
ENV PATH=/app/miniconda/bin:$PATH
12+
ENV CONDA=/app/miniconda/bin
1213

13-
RUN echo yes | conda create --name sd-scripts python=3.12
14-
SHELL ["conda", "run", "-n", "sd-scripts", "/bin/bash", "-c"]
14+
RUN echo yes | $CONDA/conda create --name sd-scripts python=3.12
15+
SHELL ["$CONDA/conda", "run", "-n", "sd-scripts", "/bin/bash", "-c"]
1516
RUN conda activate sd-scripts
1617

1718
RUN git clone https://github.com/kohya-ss/sd-scripts.git

0 commit comments

Comments
 (0)