diff --git a/Dockerfile b/Dockerfile index 3b2f978596fcdf23bda58a59a068c4e2b87cb267..3045ce904efaf903ab722839ebd5c541f6894245 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,16 +1,18 @@ FROM python:3.7-alpine +# Initialize the project structure + RUN mkdir -p /srv -WORKDIR /srv +RUN mkdir -p /var/log/aura -COPY requirements.txt /srv +# Copy sources and install +COPY . /srv +WORKDIR /srv RUN pip3 install --no-cache-dir -r requirements.txt -COPY . /srv +# Start the API Server EXPOSE 8008 - -# ENTRYPOINT ["python"] - -# CMD ["-m", "src"] \ No newline at end of file +ENTRYPOINT ["gunicorn"] +CMD ["-c", "config/gunicorn.conf.py", "engine-api.py:app"]