File size: 300 Bytes
d5cb879
2986566
d5cb879
3f04c85
7fc018b
 
 
 
 
 
 
ca24438
2986566
01c6383
ca02259
 
d5cb879
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
FROM python:3.9

WORKDIR /code

# Create cache directory with correct permissions
RUN mkdir -p /.cache && chmod 777 /.cache

# Create a non-root user
RUN useradd -m -u 1000 user
USER user

COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt

COPY . .

CMD ["python", "app.py"]