thejagstudio commited on
Commit
705c349
·
verified ·
1 Parent(s): b6596d8

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -10
Dockerfile CHANGED
@@ -45,19 +45,12 @@ ENV HOME=/home/user
45
  RUN mkdir $HOME/.cache $HOME/.config \
46
  && chmod -R 777 $HOME
47
 
48
- # Set up the Conda environment
49
- ENV CONDA_AUTO_UPDATE_CONDA=false \
50
- PATH=$HOME/miniconda/bin:$PATH
51
- RUN curl -sLo ~/miniconda.sh https://repo.continuum.io/miniconda/Miniconda3-py39_4.10.3-Linux-x86_64.sh \
52
- && chmod +x ~/miniconda.sh \
53
- && ~/miniconda.sh -b -p ~/miniconda \
54
- && rm ~/miniconda.sh \
55
- && conda clean -ya
56
 
57
  WORKDIR $HOME/app
58
  COPY requirements.txt ./
59
- RUN --mount=target=requirements.txt,source=requirements.txt \
60
- pip install --no-cache-dir --upgrade -r requirements.txt
61
  COPY . .
62
  EXPOSE 7860
63
  CMD ["python","./manage.py","runserver","0.0.0.0:7860"]
 
45
  RUN mkdir $HOME/.cache $HOME/.config \
46
  && chmod -R 777 $HOME
47
 
48
+ RUN apt-get install python3
49
+ RUN apt-get install python3-pip
 
 
 
 
 
 
50
 
51
  WORKDIR $HOME/app
52
  COPY requirements.txt ./
53
+ RUN pip install --no-cache-dir --upgrade -r requirements.txt
 
54
  COPY . .
55
  EXPOSE 7860
56
  CMD ["python","./manage.py","runserver","0.0.0.0:7860"]