azils3 commited on
Commit
6d4df55
·
verified ·
1 Parent(s): 4caa71b

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -3
Dockerfile CHANGED
@@ -3,8 +3,7 @@ FROM python:3.8-slim-buster
3
  ENV PYTHONUNBUFFERED=1 \
4
  PYTHONDONTWRITEBYTECODE=1 \
5
  PORT=7860 \
6
- DATABASE_URL=sqlite:///db.sqlite3 \
7
- DEBUG=True
8
 
9
  WORKDIR /app
10
 
@@ -18,7 +17,7 @@ RUN pip install --no-cache-dir -r requirements.txt
18
 
19
  COPY . .
20
 
21
- # Remove migration from build step
22
  RUN python manage.py collectstatic --noinput
23
 
24
  COPY entrypoint.sh /entrypoint.sh
 
3
  ENV PYTHONUNBUFFERED=1 \
4
  PYTHONDONTWRITEBYTECODE=1 \
5
  PORT=7860 \
6
+ DATABASE_URL=sqlite:///db.sqlite3
 
7
 
8
  WORKDIR /app
9
 
 
17
 
18
  COPY . .
19
 
20
+ # Only copy static files (no DB operations)
21
  RUN python manage.py collectstatic --noinput
22
 
23
  COPY entrypoint.sh /entrypoint.sh