ErikDaska commited on
Commit
f0628c4
·
verified ·
1 Parent(s): 7a2be7f

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -2
Dockerfile CHANGED
@@ -9,8 +9,12 @@ RUN apt-get update && apt-get install -y \
9
  git \
10
  && rm -rf /var/lib/apt/lists/*
11
 
12
- COPY requirements.txt ./
13
- COPY src/ ./src/
 
 
 
 
14
 
15
  RUN pip3 install -r requirements.txt
16
 
 
9
  git \
10
  && rm -rf /var/lib/apt/lists/*
11
 
12
+ # Copy requirements file and install Python packages
13
+ COPY --chown=user requirements.txt ./requirements.txt
14
+ RUN pip install --no-cache-dir -r requirements.txt
15
+
16
+ # Copy source code and assign ownership to 'user'
17
+ COPY --chown=user src/ ./src/
18
 
19
  RUN pip3 install -r requirements.txt
20