Skip to content

Commit 5833c37

Browse files
committed
Use variables for major and minor version of cuda
1 parent a0a4854 commit 5833c37

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Dockerfile.tmpl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ RUN conda config --add channels nvidia && \
101101

102102
# Install spacy
103103
{{ if eq .Accelerator "gpu" }}
104-
RUN mamba install -y -c conda-forge spacy cupy cuda-version=11.8 && \
104+
RUN mamba install -y -c conda-forge spacy cupy cuda-version=$CUDA_MAJOR_VERSION.$CUDA_MINOR_VERSION && \
105105
/tmp/clean-layer.sh
106106
{{ else }}
107107
RUN pip install spacy && \
@@ -134,7 +134,6 @@ RUN pip install \
134134
/tmp/clean-layer.sh
135135
{{ end }}
136136

137-
138137
# Install LightGBM
139138
{{ if eq .Accelerator "gpu" }}
140139
COPY --from=lightgbm_whl /tmp/whl/*.whl /tmp/lightgbm/

0 commit comments

Comments
 (0)