File tree Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ ENV GALLERIES='[{"name":"model-gallery", "url":"github:go-skynet/model-gallery/i
19
19
ARG GO_TAGS="stablediffusion tts"
20
20
21
21
RUN apt-get update && \
22
- apt-get install -y ca-certificates curl patch pip cmake
22
+ apt-get install -y ca-certificates curl patch pip cmake && apt-get clean
23
23
24
24
25
25
# Use the variables in subsequent instructions
@@ -34,17 +34,18 @@ RUN if [ "${BUILD_TYPE}" = "cublas" ]; then \
34
34
dpkg -i cuda-keyring_1.0-1_all.deb && \
35
35
rm -f cuda-keyring_1.0-1_all.deb && \
36
36
apt-get update && \
37
- apt-get install -y cuda-nvcc-${CUDA_MAJOR_VERSION}-${CUDA_MINOR_VERSION} libcublas-dev-${CUDA_MAJOR_VERSION}-${CUDA_MINOR_VERSION} libcusparse-dev-${CUDA_MAJOR_VERSION}-${CUDA_MINOR_VERSION} libcusolver-dev-${CUDA_MAJOR_VERSION}-${CUDA_MINOR_VERSION} \
37
+ apt-get install -y cuda-nvcc-${CUDA_MAJOR_VERSION}-${CUDA_MINOR_VERSION} libcublas-dev-${CUDA_MAJOR_VERSION}-${CUDA_MINOR_VERSION} libcusparse-dev-${CUDA_MAJOR_VERSION}-${CUDA_MINOR_VERSION} libcusolver-dev-${CUDA_MAJOR_VERSION}-${CUDA_MINOR_VERSION} && apt-get clean \
38
38
; fi
39
39
ENV PATH /usr/local/cuda/bin:${PATH}
40
40
41
- # OpenBLAS requirements
42
- RUN apt-get install -y libopenblas-dev
43
-
44
- # Stable Diffusion requirements
45
- RUN apt-get install -y libopencv-dev && \
46
- ln -s /usr/include/opencv4/opencv2 /usr/include/opencv2
41
+ # OpenBLAS requirements and stable diffusion
42
+ RUN apt-get install -y \
43
+ libopenblas-dev \
44
+ libopencv-dev \
45
+ && apt-get clean
47
46
47
+ # Set up OpenCV
48
+ RUN ln -s /usr/include/opencv4/opencv2 /usr/include/opencv2
48
49
49
50
WORKDIR /build
50
51
You can’t perform that action at this time.
0 commit comments