Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
yufree authored Aug 28, 2024
1 parent 0cb192c commit 1c0aeed
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions deepspace/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
# 使用 ARG 指令来设置 CUDA 版本
ARG CUDA_VERSION=12.6.0

# 使用 NVIDIA CUDA 基础镜像,版本可以在构建时指定
FROM nvidia/cuda:${CUDA_VERSION}-base-ubuntu24.04

# 避免交互式提示
ENV DEBIAN_FRONTEND=noninteractive
ENV DEBIAN_FRONTEND noninteractive

RUN apt-get update && apt-get install -y --no-install-recommends \
wget \
Expand All @@ -17,7 +14,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
RUN wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O /tmp/miniconda.sh \
&& bash /tmp/miniconda.sh -b -p /opt/conda \
&& rm /tmp/miniconda.sh \
&& /opt/conda/bin/conda clean -tipsy
&& /opt/conda/bin/conda clean -a -y

ENV PATH=/opt/conda/bin:$PATH

Expand Down

0 comments on commit 1c0aeed

Please sign in to comment.