Vivek0912 commited on
Commit
992a0dd
·
1 Parent(s): 9113452

renamed file

Browse files
Files changed (1) hide show
  1. .dockerfile → Dockerfile +4 -3
.dockerfile → Dockerfile RENAMED
@@ -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