Spaces:
Runtime error
Runtime error
Create dockerfile
Browse files- dockerfile +15 -0
dockerfile
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM python:3.11
|
2 |
+
|
3 |
+
# set work directory
|
4 |
+
WORKDIR /code
|
5 |
+
|
6 |
+
# install dependencies
|
7 |
+
COPY requirements.txt /code/
|
8 |
+
RUN pip install -r requirements.txt
|
9 |
+
|
10 |
+
# copy project
|
11 |
+
COPY . /code/
|
12 |
+
|
13 |
+
EXPOSE 8000
|
14 |
+
|
15 |
+
CMD ["python", "manage.py", "runserver", "0.0.0.0:8000"]
|