Mbonea commited on
Commit
73df4f2
·
1 Parent(s): 0e8e94c
Files changed (1) hide show
  1. Dockerfile +5 -2
Dockerfile CHANGED
@@ -8,6 +8,9 @@ RUN groupadd -r appuser && useradd -r -g appuser appuser
8
  WORKDIR /srv
9
  RUN chown -R appuser:appuser /srv
10
 
 
 
 
11
  # Install dependencies and Python packages
12
  RUN apt-get update && apt-get install -y git ffmpeg aria2 \
13
  && rm -rf /var/lib/apt/lists/*
@@ -22,8 +25,8 @@ RUN chown -R appuser:appuser /srv
22
  # Switch to the non-root user
23
  USER appuser
24
 
25
- # Define the command to run the application
26
  CMD uvicorn App.app:app --host 0.0.0.0 --port 7860 & celery -A App.Worker.celery worker -c 8 --loglevel=info
27
 
28
- # Expose the application port
29
  EXPOSE 7860
 
8
  WORKDIR /srv
9
  RUN chown -R appuser:appuser /srv
10
 
11
+ # Create the Downloads directory with the correct permissions
12
+ RUN mkdir -p /srv/App/Downloads && chown -R appuser:appuser /srv/App/Downloads
13
+
14
  # Install dependencies and Python packages
15
  RUN apt-get update && apt-get install -y git ffmpeg aria2 \
16
  && rm -rf /var/lib/apt/lists/*
 
25
  # Switch to the non-root user
26
  USER appuser
27
 
28
+ # Command to run the application
29
  CMD uvicorn App.app:app --host 0.0.0.0 --port 7860 & celery -A App.Worker.celery worker -c 8 --loglevel=info
30
 
31
+ # Expose the server port
32
  EXPOSE 7860