Vivek0912 commited on
Commit
eed3a91
·
verified ·
1 Parent(s): 9113452

updated code

Browse files
Files changed (1) hide show
  1. .dockerfile +4 -3
.dockerfile CHANGED
@@ -20,9 +20,10 @@ RUN pip install --no-cache-dir -r requirements.txt
20
  # Create a non-root user
21
  RUN useradd -m -u 1000 user
22
 
23
- # Create a writable directory for attachments and assign ownership to the non-root user
24
- USER root
25
- RUN mkdir -p /data/attachments && chown -R user:user /data/attachments
 
26
 
27
  # Ensure correct permissions (optional but recommended)
28
  RUN chown -R root:root /app
 
20
  # Create a non-root user
21
  RUN useradd -m -u 1000 user
22
 
23
+ WORKDIR /code
24
+
25
+ COPY requirements.txt .
26
+ RUN pip install --no-cache-dir -r requirements.txt
27
 
28
  # Ensure correct permissions (optional but recommended)
29
  RUN chown -R root:root /app