fix
This commit is contained in:
@@ -5,8 +5,8 @@
|
||||
|
||||
# 主なバージョン等
|
||||
# Ubuntu 22.04
|
||||
# Python 3.10
|
||||
# PyTorch 2.1.2 (CUDA 11.8)
|
||||
# Python 3.12
|
||||
# PyTorch 2.7.x (CUDA 11.8)
|
||||
# CUDA Toolkit 12.0, CUDNN 8.9.7
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ ENV SHELL=/bin/bash
|
||||
ENV DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
ENV APT_INSTALL="apt-get install -y --no-install-recommends"
|
||||
ENV PIP_INSTALL="python3 -m pip --no-cache-dir install --upgrade"
|
||||
ENV PIP_INSTALL="python3.12 -m pip --no-cache-dir install --upgrade"
|
||||
ENV GIT_CLONE="git clone --depth 10"
|
||||
|
||||
# ==================================================================
|
||||
@@ -44,10 +44,14 @@ RUN apt-get update && \
|
||||
nano \
|
||||
ffmpeg \
|
||||
software-properties-common \
|
||||
gnupg \
|
||||
python3 \
|
||||
python3-pip \
|
||||
python3-dev
|
||||
gnupg
|
||||
|
||||
RUN add-apt-repository ppa:deadsnakes/ppa && \
|
||||
apt-get update && \
|
||||
$APT_INSTALL python3.12 python3.12-dev && \
|
||||
curl -sS https://bootstrap.pypa.io/get-pip.py -o /tmp/get-pip.py && \
|
||||
python3.12 /tmp/get-pip.py && \
|
||||
rm /tmp/get-pip.py
|
||||
|
||||
# ==================================================================
|
||||
# Git-lfs
|
||||
@@ -57,8 +61,9 @@ RUN curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.d
|
||||
$APT_INSTALL git-lfs
|
||||
|
||||
|
||||
# Add symlink so python and python3 commands use same python3.9 executable
|
||||
RUN ln -s /usr/bin/python3 /usr/local/bin/python
|
||||
# Add symlinks so python and python3 commands use Python 3.12.
|
||||
RUN ln -s /usr/bin/python3.12 /usr/local/bin/python && \
|
||||
ln -s /usr/bin/python3.12 /usr/local/bin/python3
|
||||
|
||||
# ==================================================================
|
||||
# Installing CUDA packages (CUDA Toolkit 12.0 and CUDNN 8.9.7)
|
||||
@@ -106,4 +111,4 @@ RUN rm /tmp/requirements.txt
|
||||
|
||||
EXPOSE 8888 6006
|
||||
|
||||
CMD jupyter lab --allow-root --ip=0.0.0.0 --no-browser --ServerApp.trust_xheaders=True --ServerApp.disable_check_xsrf=False --ServerApp.allow_remote_access=True --ServerApp.allow_origin='*' --ServerApp.allow_credentials=True
|
||||
CMD jupyter lab --allow-root --ip=0.0.0.0 --no-browser --ServerApp.trust_xheaders=True --ServerApp.disable_check_xsrf=False --ServerApp.allow_remote_access=True --ServerApp.allow_origin='*' --ServerApp.allow_credentials=True
|
||||
|
||||
Reference in New Issue
Block a user