forked from Tracardi/tracardi-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.ssl
40 lines (27 loc) · 856 Bytes
/
Dockerfile.ssl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
FROM tiangolo/uvicorn-gunicorn-fastapi:python3.9
RUN apt-get update
RUN apt-get install -y git
# set the working directory in the container
RUN mkdir app/
WORKDIR /app
## Install dependencies
COPY app/requirements.txt .
RUN pip install wheel
RUN pip --default-timeout=180 install -r requirements.txt
## Copy application
COPY app app/
COPY uix uix/
# Remove test page
RUN rm -rf app/tracker/index.html
RUN rm -rf app/tracker/index.css
COPY docs docs/
COPY mkdocs.yml /
RUN pip install wheel
RUN pip --default-timeout=180 install -r docs/requirements.txt
WORKDIR /
RUN mkdocs build
WORKDIR /app
ENV VARIABLE_NAME="application"
# ENV GUNICORN_CMD_ARGS="--keyfile=/ssl/key.pem --certfile=/ssl/cert.pem --timeout=90"
EXPOSE 443
CMD ["gunicorn", "-b", "0.0.0.0:443", "-k", "uvicorn.workers.UvicornWorker", "--workers", "25", "app.main:application"]