FROM python:3.7-buster # Initialize the project structure RUN mkdir -p /srv RUN mkdir -p /var/log/aura # Copy sources and install COPY . /srv WORKDIR /srv RUN pip3 install --no-cache-dir -r requirements.txt # Create default config COPY config/sample/gunicorn/sample-docker.gunicorn.conf.py config/docker/gunicorn.conf.py # Start the API Server EXPOSE 8008 ENTRYPOINT ["gunicorn"] CMD ["-c", "/srv/config/docker/gunicorn.conf.py", "src.app:app"]