Janeka commited on
Commit
bd3315c
·
verified ·
1 Parent(s): 41a5ab4

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +1 -13
Dockerfile CHANGED
@@ -8,19 +8,7 @@ RUN apt-get update && apt-get install -y \
8
  libgl1 \
9
  && rm -rf /var/lib/apt/lists/*
10
 
11
- # Create necessary directories
12
- RUN mkdir -p /tmp/gradio && chmod 777 /tmp/gradio
13
- ENV GRADIO_TEMP_DIR=/tmp/gradio
14
-
15
- # Set up Numba cache
16
- ENV NUMBA_CACHE_DIR=/tmp/numba_cache
17
- RUN mkdir -p ${NUMBA_CACHE_DIR} && chmod 777 ${NUMBA_CACHE_DIR}
18
-
19
  # Install Python dependencies
20
  RUN pip install --no-cache-dir -r requirements.txt
21
 
22
- # Run as non-root user
23
- RUN useradd -m appuser && chown -R appuser /app
24
- USER appuser
25
-
26
- CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
8
  libgl1 \
9
  && rm -rf /var/lib/apt/lists/*
10
 
 
 
 
 
 
 
 
 
11
  # Install Python dependencies
12
  RUN pip install --no-cache-dir -r requirements.txt
13
 
14
+ CMD ["python", "app.py"]