cigol123 commited on
Commit
7fc018b
·
verified ·
1 Parent(s): b2ce8ef

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -0
Dockerfile CHANGED
@@ -2,6 +2,13 @@ FROM python:3.9
2
 
3
  WORKDIR /code
4
 
 
 
 
 
 
 
 
5
  COPY requirements.txt .
6
  RUN pip install --no-cache-dir -r requirements.txt
7
 
 
2
 
3
  WORKDIR /code
4
 
5
+ # Create cache directory with correct permissions
6
+ RUN mkdir -p /.cache && chmod 777 /.cache
7
+
8
+ # Create a non-root user
9
+ RUN useradd -m -u 1000 user
10
+ USER user
11
+
12
  COPY requirements.txt .
13
  RUN pip install --no-cache-dir -r requirements.txt
14