Azeez98 commited on
Commit
00fe528
·
verified ·
1 Parent(s): 199395f

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +16 -4
Dockerfile CHANGED
@@ -31,8 +31,20 @@ ENV OCR_API_TOKEN=${OCR_API_TOKEN} \
31
  # Collect static files
32
  RUN python manage.py collectstatic --noinput
33
 
34
- # Expose Django port
35
- EXPOSE 7860
36
 
37
- # Run with Gunicorn (edit project name below)
38
- CMD ["gunicorn", "django_project.wsgi:application", "--bind", "0.0.0.0:7860"]
 
 
 
 
 
 
 
 
 
 
 
 
 
31
  # Collect static files
32
  RUN python manage.py collectstatic --noinput
33
 
34
+ # Copy NGINX config
35
+ COPY nginx/default.conf /etc/nginx/conf.d/default.conf
36
 
37
+ # Collect static files (optional)
38
+ RUN mkdir -p /app/static /app/media
39
+
40
+ # Run script
41
+ COPY start.sh /start.sh
42
+ RUN chmod +x /start.sh
43
+
44
+ CMD ["/start.sh"]
45
+
46
+ # # Expose Django port
47
+ # EXPOSE 7860
48
+
49
+ # # Run with Gunicorn (edit project name below)
50
+ # CMD ["gunicorn", "django_project.wsgi:application", "--bind", "0.0.0.0:7860"]