moriire commited on
Commit
e20eca3
1 Parent(s): 83b3738

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -24
Dockerfile CHANGED
@@ -1,5 +1,4 @@
1
- FROM nvidia/cuda:11.8.0-cudnn8-runtime-ubuntu22.04
2
- #python:3.12
3
  ENV DEBIAN_FRONTEND=noninteractive \
4
  TZ=America/Los_Angeles \
5
  HOST=0.0.0.0 \
@@ -11,33 +10,12 @@ WORKDIR /code
11
  RUN chmod 777 .
12
 
13
  COPY ./requirements.txt /code/requirements.txt
14
- # Pyenv
15
- RUN curl https://pyenv.run | bash
16
- ENV PATH=$HOME/.pyenv/shims:$HOME/.pyenv/bin:$PATH
17
-
18
- ARG PYTHON_VERSION=3.10.12
19
- # Python
20
- RUN pyenv install $PYTHON_VERSION && \
21
- pyenv global $PYTHON_VERSION && \
22
- pyenv rehash && \
23
- pip install --no-cache-dir --upgrade pip setuptools wheel && \
24
- pip install --no-cache-dir
25
-
26
  RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
27
 
28
  RUN useradd -m -u 1000 user
29
 
30
  USER user
31
-
32
- RUN apt-get update && apt-get install -y \
33
- git \
34
- make build-essential libssl-dev zlib1g-dev \
35
- libbz2-dev libreadline-dev wget curl llvm \
36
- libncursesw5-dev xz-utils tk-dev libxml2-dev libxmlsec1-dev libffi-dev liblzma-dev git-lfs \
37
- ffmpeg libsm6 libxext6 cmake libgl1-mesa-glx \
38
- && rm -rf /var/lib/apt/lists/* \
39
- && git lfs install
40
-
41
 
42
  ENV HOME=/home/user \
43
  PATH=/home/user/.local/bin:$PATH
 
1
+ FROM python:3.12
 
2
  ENV DEBIAN_FRONTEND=noninteractive \
3
  TZ=America/Los_Angeles \
4
  HOST=0.0.0.0 \
 
10
  RUN chmod 777 .
11
 
12
  COPY ./requirements.txt /code/requirements.txt
13
+
 
 
 
 
 
 
 
 
 
 
 
14
  RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
15
 
16
  RUN useradd -m -u 1000 user
17
 
18
  USER user
 
 
 
 
 
 
 
 
 
 
19
 
20
  ENV HOME=/home/user \
21
  PATH=/home/user/.local/bin:$PATH