# syntax=docker/dockerfile:1 FROM python:3.8-slim WORKDIR /app COPY /src /app COPY . /app RUN apt-get clean \ && apt-get -y update RUN apt-get -y install nginx \ && apt-get -y install python3-dev \ && apt-get -y install build-essential RUN apt-get update && apt-get install ffmpeg libsm6 libxext6 -y RUN pip install -U pip wheel cmake RUN pip3 install -U flask_cors RUN pip3 install -r requirements.txt --src /usr/local/src --no-cache-dir RUN pip3 install opencv-python-headless RUN pip3 install mediapipe RUN pip3 install pickle-mixin COPY nginx.conf /etc/nginx RUN chmod +x ./start.sh RUN chmod -R 777 /app CMD ["./start.sh"]