hamzabouajila commited on
Commit
0d22e83
·
1 Parent(s): c8eec02

update dockerfile: separate installing dependencies from copying the files to reduce build time

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -1
Dockerfile CHANGED
@@ -1,5 +1,9 @@
1
  FROM python:3.12.7-slim
2
  WORKDIR /app
 
 
 
 
3
  COPY . /app
4
- RUN pip install -r requirements.txt
5
  CMD ["sh", "-c", "python app.py & python src/evaluator/run_evaluator.py"]
 
1
  FROM python:3.12.7-slim
2
  WORKDIR /app
3
+
4
+ COPY requirements.txt /app
5
+ RUN pip install --no-cache-dir -r requirements.txt
6
+
7
  COPY . /app
8
+
9
  CMD ["sh", "-c", "python app.py & python src/evaluator/run_evaluator.py"]