Spaces:
Runtime error
Runtime error
thejagstudio
commited on
Update Dockerfile
Browse files- 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
|
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"]
|