Spaces:
Sleeping
Sleeping
thejagstudio
commited on
Commit
•
91ea1bb
1
Parent(s):
174a7a0
Update Dockerfile
Browse files- Dockerfile +4 -2
Dockerfile
CHANGED
@@ -1,10 +1,12 @@
|
|
1 |
FROM ubuntu:24.04
|
2 |
RUN apt-get update
|
3 |
RUN apt-get install -y python3-pip
|
4 |
-
RUN apt-get install -y
|
|
|
|
|
5 |
WORKDIR /code
|
6 |
COPY ./requirements.txt /code/requirements.txt
|
7 |
-
RUN
|
8 |
COPY . .
|
9 |
EXPOSE 7860
|
10 |
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 -y python3-venv
|
5 |
+
RUN python3 -m venv venv
|
6 |
+
RUN source venv/bin/activate
|
7 |
WORKDIR /code
|
8 |
COPY ./requirements.txt /code/requirements.txt
|
9 |
+
RUN pip install -r requirements.txt
|
10 |
COPY . .
|
11 |
EXPOSE 7860
|
12 |
CMD ["python","./manage.py","runserver","0.0.0.0:7860"]
|