|
@@ -1,4 +1,4 @@
|
|
-FROM python:3.11.3
|
|
|
|
|
|
+FROM python:3.11.3-slim
|
|
|
|
|
|
RUN apt-get -y update
|
|
RUN apt-get -y update
|
|
RUN apt-get install --no-install-recommends -y --fix-missing \
|
|
RUN apt-get install --no-install-recommends -y --fix-missing \
|
|
@@ -26,28 +26,13 @@ RUN apt-get install --no-install-recommends -y --fix-missing \
|
|
|
|
|
|
WORKDIR /usr/src/app
|
|
WORKDIR /usr/src/app
|
|
|
|
|
|
-COPY requirements.txt .
|
|
|
|
|
|
+COPY . .
|
|
|
|
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
|
|
-COPY fr_flask*.py ./
|
|
|
|
-COPY wsgi*.py ./
|
|
|
|
-COPY face_recognition_svm.py ./
|
|
|
|
-COPY application_data ./
|
|
|
|
-COPY data ./
|
|
|
|
-COPY application_data/verification_images ./application_data/
|
|
|
|
-COPY application_data/input_image ./application_data/
|
|
|
|
-COPY data/train ./data/
|
|
|
|
-COPY *.sh ./
|
|
|
|
-
|
|
|
|
-WORKDIR /usr/src/app
|
|
|
|
-
|
|
|
|
-RUN ls -la
|
|
|
|
-RUN ls -R application_data
|
|
|
|
-RUN ls -R data
|
|
|
|
RUN chmod +x *.sh
|
|
RUN chmod +x *.sh
|
|
RUN python face_recognition_svm.py
|
|
RUN python face_recognition_svm.py
|
|
|
|
|
|
EXPOSE 8349
|
|
EXPOSE 8349
|
|
|
|
|
|
-CMD ["/usr/src/app/run.sh", "--no-venv"]
|
|
|
|
|
|
+CMD ["/usr/src/app/run.sh", "--no-venv"]
|