-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathDockerfile
More file actions
30 lines (27 loc) · 870 Bytes
/
Dockerfile
File metadata and controls
30 lines (27 loc) · 870 Bytes
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
FROM python:3.11-alpine
COPY ./nginx/entrypoint.py /entrypoint.py
RUN \
apk update && \
apk add openssl nginx nginx-mod-stream && \
pip install \
--platform=musllinux_1_1_x86_64 \
--only-binary=:all: \
--target=/usr/local/lib/python3.10/site-packages \
--no-cache-dir \
cffi && \
pip install otumat && \
chmod +x /entrypoint.py && \
rm /etc/nginx/http.d/default.conf
ENTRYPOINT ["/entrypoint.py"]
HEALTHCHECK \
--timeout=30s \
--retries=5 \
--interval=15s \
CMD \
ps -a | grep -e "root.*nginx" | grep -v grep
CMD ["main"]
# DATAJOINT DEFAULTS
COPY ./nginx/privkey.pem /etc/letsencrypt/live/fakeservices.datajoint.io/privkey.pem
COPY ./nginx/fullchain.pem /etc/letsencrypt/live/fakeservices.datajoint.io/fullchain.pem
ENV SUBDOMAINS=fakeservices
ENV URL=datajoint.io