Skip to content

Commit

Permalink
[BS5] update async dockerapi
Browse files Browse the repository at this point in the history
  • Loading branch information
FreddleSpl0it committed Aug 23, 2022
1 parent db8af3d commit be7252f
Show file tree
Hide file tree
Showing 4 changed files with 549 additions and 1,025 deletions.
10 changes: 2 additions & 8 deletions data/Dockerfiles/dockerapi/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,7 @@ RUN apk add --update --no-cache python3 \
aiodocker \
redis

RUN openssl req -x509 -newkey rsa:4096 -sha256 -days 3650 -nodes \
-keyout /app/dockerapi_key.pem \
-out /app/dockerapi_cert.pem \
-subj /CN=dockerapi/O=mailcow \
-addext subjectAltName=DNS:dockerapi

COPY docker-entrypoint.sh /app/
COPY dockerapi.py /app/
COPY async-dockerapi.py /app/

CMD ["uvicorn", "--host", "0.0.0.0", "--port", "443", "--ssl-certfile=/app/dockerapi_cert.pem", "--ssl-keyfile=/app/dockerapi_key.pem", "async-dockerapi:app"]
ENTRYPOINT ["/bin/sh", "/app/docker-entrypoint.sh"]
Loading

0 comments on commit be7252f

Please sign in to comment.