shashankkandimalla commited on
Commit
c9672bd
·
1 Parent(s): 55dd12e

commiting changes

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -0
Dockerfile CHANGED
@@ -16,11 +16,17 @@ RUN pip install --no-cache-dir --upgrade -r requirements.txt
16
  # Copy the current directory contents into the container
17
  COPY . .
18
 
 
 
 
19
  # Switch to the non-root user
20
  USER user
21
 
22
  # Make port 7860 available to the world outside this container
23
  EXPOSE 7860
24
 
 
 
 
25
  # Run the Gradio app when the container launches
26
  CMD ["python", "app.py"]
 
16
  # Copy the current directory contents into the container
17
  COPY . .
18
 
19
+ # Create a directory for flagged data and set permissions
20
+ RUN mkdir /app/flagged && chown user:user /app/flagged
21
+
22
  # Switch to the non-root user
23
  USER user
24
 
25
  # Make port 7860 available to the world outside this container
26
  EXPOSE 7860
27
 
28
+ # Set Python to ignore deprecation warnings
29
+ ENV PYTHONWARNINGS="ignore:on_event is deprecated:DeprecationWarning"
30
+
31
  # Run the Gradio app when the container launches
32
  CMD ["python", "app.py"]