NitinBot001 commited on
Commit
1c061d3
·
verified ·
1 Parent(s): 32712c2

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +10 -8
Dockerfile CHANGED
@@ -1,6 +1,16 @@
1
  # Use Python 3.9 slim as base image
2
  FROM python:3.9-slim
3
 
 
 
 
 
 
 
 
 
 
 
4
  # Set working directory
5
  WORKDIR /app
6
 
@@ -21,15 +31,7 @@ COPY requirements.txt .
21
  # Install Python dependencies
22
  RUN pip install --no-cache-dir -r requirements.txt
23
 
24
- # Create non-root user for better security
25
- RUN useradd -m -u 1000 appuser && \
26
- mkdir -p /app/.cache/huggingface && \
27
- mkdir -p /tmp/gradio_cache && \
28
- mkdir -p /app/temp_audio && \
29
- chown -R appuser:appuser /app && \
30
- chown -R appuser:appuser /tmp/gradio_cache
31
 
32
- USER appuser
33
 
34
  # Copy application files
35
  COPY . .
 
1
  # Use Python 3.9 slim as base image
2
  FROM python:3.9-slim
3
 
4
+ # Create non-root user for better security
5
+ RUN useradd -m -u 1000 appuser && \
6
+ mkdir -p /app/.cache/huggingface && \
7
+ mkdir -p /tmp/gradio_cache && \
8
+ mkdir -p /app/temp_audio && \
9
+ chown -R appuser:appuser /app && \
10
+ chown -R appuser:appuser /tmp/gradio_cache
11
+
12
+ USER appuser
13
+
14
  # Set working directory
15
  WORKDIR /app
16
 
 
31
  # Install Python dependencies
32
  RUN pip install --no-cache-dir -r requirements.txt
33
 
 
 
 
 
 
 
 
34
 
 
35
 
36
  # Copy application files
37
  COPY . .