Spaces:
Running
Running
thejagstudio
commited on
Commit
•
ec17d4e
1
Parent(s):
1ef469b
Create Dockerfile
Browse files- Dockerfile +13 -0
Dockerfile
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
+
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"]
|