thejagstudio commited on
Commit
736adf9
·
verified ·
1 Parent(s): e680339

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -1
Dockerfile CHANGED
@@ -1,9 +1,10 @@
1
  FROM ubuntu:24.04
2
  RUN apt-get update
3
  RUN apt-get install -y python3-pip
 
4
  WORKDIR /code
5
  COPY ./requirements.txt /code/requirements.txt
6
- RUN pip3 install -r /code/requirements.txt
7
  COPY . .
8
  EXPOSE 7860
9
  CMD ["python","./manage.py","runserver","0.0.0.0:7860"]
 
1
  FROM ubuntu:24.04
2
  RUN apt-get update
3
  RUN apt-get install -y python3-pip
4
+ RUN apt-get install pipx
5
  WORKDIR /code
6
  COPY ./requirements.txt /code/requirements.txt
7
+ RUN pipx install -r /code/requirements.txt
8
  COPY . .
9
  EXPOSE 7860
10
  CMD ["python","./manage.py","runserver","0.0.0.0:7860"]