Prathush21 commited on
Commit
bea92c2
·
verified ·
1 Parent(s): 67d640b

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -2
Dockerfile CHANGED
@@ -8,8 +8,14 @@ RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
8
 
9
  RUN apt-get update && apt-get install ffmpeg libsm6 libxext6 -y
10
 
11
- RUN mkdir -p /code/uploads /code/heatmaps /code/segmentations /code/tables /code/cell_descriptors
12
- RUN chmod -R 777 /code/uploads /code/heatmaps /code/segmentations /code/tables /code/cell_descriptors
 
 
 
 
 
 
13
 
14
  COPY . .
15
 
 
8
 
9
  RUN apt-get update && apt-get install ffmpeg libsm6 libxext6 -y
10
 
11
+ # Create a user and group with specific UID and GID
12
+ RUN groupadd -r appuser && useradd -r -g appuser appuser
13
+
14
+ # Change ownership of the /code directory to the new user
15
+ RUN chown -R appuser:appuser /code
16
+
17
+ # Switch to the new user
18
+ USER appuser
19
 
20
  COPY . .
21