Spaces:
Running
Running
thejagstudio
commited on
Commit
•
1ee3b61
1
Parent(s):
1cae467
Update Dockerfile
Browse files- Dockerfile +4 -10
Dockerfile
CHANGED
@@ -1,13 +1,7 @@
|
|
1 |
-
FROM
|
2 |
-
|
3 |
-
|
4 |
-
RUN
|
5 |
-
WORKDIR /code
|
6 |
-
RUN python3 -m venv /code/venv
|
7 |
-
COPY ./requirements.txt /code/requirements.txt
|
8 |
-
RUN /code/venv/bin/pip install --upgrade pip
|
9 |
-
RUN /code/venv/bin/pip install -r /code/requirements.txt
|
10 |
COPY . .
|
11 |
-
ENV PATH="/code/venv/bin:$PATH"
|
12 |
EXPOSE 7860
|
13 |
CMD ["python","./manage.py","runserver","0.0.0.0:7860"]
|
|
|
1 |
+
FROM python:3
|
2 |
+
WORKDIR /usr/src/app
|
3 |
+
COPY requirements.txt ./
|
4 |
+
RUN pip install -r requirements.txt
|
|
|
|
|
|
|
|
|
|
|
5 |
COPY . .
|
|
|
6 |
EXPOSE 7860
|
7 |
CMD ["python","./manage.py","runserver","0.0.0.0:7860"]
|