Spaces:
Runtime error
Runtime error
thejagstudio
commited on
Commit
•
c0df558
1
Parent(s):
91ea1bb
Update Dockerfile
Browse files- Dockerfile +4 -2
Dockerfile
CHANGED
@@ -2,11 +2,13 @@ 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
|
|
|
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"]
|
|
|
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 /code/venv
|
6 |
+
RUN /code/venv/bin/pip install --upgrade pip
|
7 |
+
RUN /code/venv/bin/pip install -r /code/requirements.txt
|
8 |
WORKDIR /code
|
9 |
COPY ./requirements.txt /code/requirements.txt
|
10 |
RUN pip install -r requirements.txt
|
11 |
COPY . .
|
12 |
+
ENV PATH="/code/venv/bin:$PATH"
|
13 |
EXPOSE 7860
|
14 |
CMD ["python","./manage.py","runserver","0.0.0.0:7860"]
|