Update Dockerfile
Browse files- 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 |
-
#
|
35 |
-
|
36 |
|
37 |
-
#
|
38 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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"]
|