mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2026-11-01 06:45:42 +00:00
[BS5] update async dockerapi
This commit is contained in:
1 parent
db8af3d1e0
commit
be7252f620
4 files changed
+534
-1010
No files matched your search
@@ -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"]
|
||||
Reference in new issue
Block a user