Corran commited on
Commit
524a5e7
·
verified ·
1 Parent(s): dee0ffd

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +1 -5
Dockerfile CHANGED
@@ -1,7 +1,7 @@
1
  FROM nvidia/cuda:11.3.1-base-ubuntu20.04
2
 
3
  ENV DEBIAN_FRONTEND=noninteractive \
4
- TZ=Aisa/Shanghai \
5
  LC_CTYPE=C.UTF-8 \
6
  LANG=C.UTF-8
7
 
@@ -69,21 +69,17 @@ RUN add-apt-repository ppa:flexiondotorg/nvtop && \
69
  RUN curl -sL https://deb.nodesource.com/setup_18.x | bash - && \
70
  apt-get install -y nodejs && \
71
  npm install -g configurable-http-proxy
72
-
73
  # Create a working directory
74
  WORKDIR /app
75
-
76
  # Create a non-root user and switch to it
77
  RUN adduser --disabled-password --gecos '' --shell /bin/bash user \
78
  && chown -R user:user /app
79
  RUN echo "user ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/90-user
80
  USER user
81
-
82
  # All users can use /home/user as their home directory
83
  ENV HOME=/home/user
84
  RUN mkdir $HOME/.cache $HOME/.config \
85
  && chmod -R 777 $HOME
86
-
87
  # Set up the Conda environment
88
  ENV CONDA_AUTO_UPDATE_CONDA=false \
89
  PATH=$HOME/miniconda/bin:$PATH
 
1
  FROM nvidia/cuda:11.3.1-base-ubuntu20.04
2
 
3
  ENV DEBIAN_FRONTEND=noninteractive \
4
+ TZ=Europe/Paris \
5
  LC_CTYPE=C.UTF-8 \
6
  LANG=C.UTF-8
7
 
 
69
  RUN curl -sL https://deb.nodesource.com/setup_18.x | bash - && \
70
  apt-get install -y nodejs && \
71
  npm install -g configurable-http-proxy
 
72
  # Create a working directory
73
  WORKDIR /app
 
74
  # Create a non-root user and switch to it
75
  RUN adduser --disabled-password --gecos '' --shell /bin/bash user \
76
  && chown -R user:user /app
77
  RUN echo "user ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/90-user
78
  USER user
 
79
  # All users can use /home/user as their home directory
80
  ENV HOME=/home/user
81
  RUN mkdir $HOME/.cache $HOME/.config \
82
  && chmod -R 777 $HOME
 
83
  # Set up the Conda environment
84
  ENV CONDA_AUTO_UPDATE_CONDA=false \
85
  PATH=$HOME/miniconda/bin:$PATH