maro65 commited on
Commit
e5fda30
·
verified ·
1 Parent(s): 77c0407

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -2
Dockerfile CHANGED
@@ -1,10 +1,14 @@
1
  FROM ghcr.io/frappe/lms:stable
2
 
3
  USER root
 
4
  RUN mkdir -p /home/frappe/frappe-bench/sites/localhost && \
5
  chown -R frappe:frappe /home/frappe/frappe-bench/sites/localhost
6
 
 
7
  USER frappe
 
8
  EXPOSE 7860
9
- # This forces the terminal to change directory immediately before executing bench
10
- CMD ["bash", "-c", "cd /home/frappe/frappe-bench && bench start"]
 
 
1
  FROM ghcr.io/frappe/lms:stable
2
 
3
  USER root
4
+ # Create missing asset directories Hugging Face resets
5
  RUN mkdir -p /home/frappe/frappe-bench/sites/localhost && \
6
  chown -R frappe:frappe /home/frappe/frappe-bench/sites/localhost
7
 
8
+ WORKDIR /home/frappe/frappe-bench
9
  USER frappe
10
+
11
  EXPOSE 7860
12
+
13
+ # Bypasses bench start to trigger the container's primary web worker process
14
+ CMD ["/home/frappe/frappe-bench/env/bin/gunicorn", "-b", "0.0.0.0:7860", "-w", "2", "frappe.app:application"]