Skip to content
Snippets Groups Projects
Commit ec3f4c6d authored by David Trattnig's avatar David Trattnig
Browse files

Run gunicorn in Docker.

parent 4b310f18
No related branches found
No related tags found
No related merge requests found
FROM python:3.7-alpine FROM python:3.7-alpine
# Initialize the project structure
RUN mkdir -p /srv 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 RUN pip3 install --no-cache-dir -r requirements.txt
COPY . /srv # Start the API Server
EXPOSE 8008 EXPOSE 8008
ENTRYPOINT ["gunicorn"]
# ENTRYPOINT ["python"] CMD ["-c", "config/gunicorn.conf.py", "engine-api.py:app"]
# CMD ["-m", "src"]
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment