gosign commited on
Commit
52724f7
·
verified ·
1 Parent(s): def4fb5

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -1
Dockerfile CHANGED
@@ -33,6 +33,9 @@ RUN useradd -m flaskuser
33
  # Copy application code
34
  COPY . /app
35
 
 
 
 
36
  # Change ownership of /app to flaskuser
37
  RUN chown -R flaskuser:flaskuser /app
38
 
@@ -43,4 +46,4 @@ USER flaskuser
43
  EXPOSE 7860
44
 
45
  # Run the Flask app using gunicorn with an infinite request timeout
46
- CMD ["gunicorn", "--bind", "0.0.0.0:7860", "--timeout", "0", "--access-logfile", "-", "--error-logfile", "-", "app:app"]
 
33
  # Copy application code
34
  COPY . /app
35
 
36
+ # Create 'letterhead' directory and set write permissions for flaskuser
37
+ RUN mkdir /app/letterhead && chown flaskuser:flaskuser /app/letterhead && chmod 755 /app/letterhead
38
+
39
  # Change ownership of /app to flaskuser
40
  RUN chown -R flaskuser:flaskuser /app
41
 
 
46
  EXPOSE 7860
47
 
48
  # Run the Flask app using gunicorn with an infinite request timeout
49
+ CMD ["gunicorn", "--bind", "0.0.0.0:7860", "--timeout", "0", "--access-logfile", "-", "--error-logfile", "-", "app:app"]