ev6 commited on
Commit
b8890bb
·
verified ·
1 Parent(s): e46507f

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -1
Dockerfile CHANGED
@@ -25,6 +25,9 @@ RUN pip install --no-cache-dir --upgrade pip
25
  RUN pip install --no-cache-dir tensorflow-cpu==2.9.1
26
  RUN pip install --no-cache-dir -r requirements.txt
27
 
 
 
 
28
  EXPOSE 8000
29
 
30
- CMD ["python", "manage.py", "runserver", "0.0.0.0:8000"]
 
25
  RUN pip install --no-cache-dir tensorflow-cpu==2.9.1
26
  RUN pip install --no-cache-dir -r requirements.txt
27
 
28
+ # Создание папки media, если она не существует
29
+ RUN mkdir -p /app/media
30
+
31
  EXPOSE 8000
32
 
33
+ CMD ["python", "manage.py", "makemigrations", "&&", "python", "manage.py", "migrate","&&", "python", "manage.py", "runserver", "0.0.0.0:8000"]