KhalilGuetari commited on
Commit
6489319
·
1 Parent(s): b219b68

copy src file before install dependencies

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -2
Dockerfile CHANGED
@@ -12,10 +12,12 @@ RUN apt-get update && apt-get install -y \
12
  # Install PDM
13
  RUN pip install --no-cache-dir pdm
14
 
15
- # Copy dependency files
16
  COPY pyproject.toml pdm.lock* ./
 
 
17
 
18
- # Install dependencies
19
  RUN pdm install --prod --no-lock --no-editable
20
 
21
  # Production stage
 
12
  # Install PDM
13
  RUN pip install --no-cache-dir pdm
14
 
15
+ # Copy dependency files and source code
16
  COPY pyproject.toml pdm.lock* ./
17
+ COPY src/ ./src/
18
+ COPY README.md LICENSE ./
19
 
20
+ # Install dependencies and project
21
  RUN pdm install --prod --no-lock --no-editable
22
 
23
  # Production stage