mirror of
https://github.com/smallstep/certificates.git
synced 2024-11-03 23:15:28 +00:00
15 lines
311 B
Docker
15 lines
311 B
Docker
FROM python:alpine
|
|
|
|
RUN mkdir /src
|
|
|
|
# Gunicorn configuration
|
|
ADD gunicorn.conf /src
|
|
|
|
# Flask app
|
|
ADD server.py /src
|
|
ADD requirements.txt /src
|
|
RUN pip3 install -r /src/requirements.txt
|
|
|
|
# app, certificate watcher and envoy
|
|
CMD ["gunicorn", "--config", "/src/gunicorn.conf", "--pythonpath", "/src", "server:app"]
|