XA7 commited on
Commit
c545755
·
2 Parent(s): 4d82572 8376907

Merge remote-tracking branch 'origin/main'

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -3
Dockerfile CHANGED
@@ -20,7 +20,7 @@ RUN pip install --no-cache-dir -r requirements.txt
20
  # Copy application files
21
  COPY . .
22
 
23
- # Create necessary directories and give them full permissions
24
  RUN mkdir -p content Story-Generation /tmp/matplotlib_cache && \
25
  chmod -R 777 /app && \
26
  chmod -R 777 /tmp && \
@@ -29,10 +29,10 @@ RUN mkdir -p content Story-Generation /tmp/matplotlib_cache && \
29
  # Expose Gradio default port
30
  EXPOSE 7860
31
 
32
- # Set environment variables for Gradio and matplotlib
33
  ENV GRADIO_SERVER_NAME="0.0.0.0"
34
  ENV GRADIO_SERVER_PORT=7860
35
  ENV MPLCONFIGDIR=/tmp/matplotlib_cache
36
 
37
- # Run the application as root (default user in python base image)
38
  CMD ["python", "app.py"]
 
20
  # Copy application files
21
  COPY . .
22
 
23
+ # Create necessary directories
24
  RUN mkdir -p content Story-Generation /tmp/matplotlib_cache && \
25
  chmod -R 777 /app && \
26
  chmod -R 777 /tmp && \
 
29
  # Expose Gradio default port
30
  EXPOSE 7860
31
 
32
+ # Set environment variables for Gradio
33
  ENV GRADIO_SERVER_NAME="0.0.0.0"
34
  ENV GRADIO_SERVER_PORT=7860
35
  ENV MPLCONFIGDIR=/tmp/matplotlib_cache
36
 
37
+ # Run the application
38
  CMD ["python", "app.py"]