From 7c69425100f9066d11b335bfa459a18032f91095 Mon Sep 17 00:00:00 2001 From: MrMeeb Date: Mon, 6 May 2024 11:49:41 +0000 Subject: [PATCH] Add Dockerfile --- Dockerfile | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..780be26 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,13 @@ +FROM python:3.13.0a6-alpine3.19 + +RUN apk add curl + +ENV ISSUER_URL= + +EXPOSE 8000 + +COPY webfinger.py /webfinger.py + +HEALTHCHECK --interval=30s --timeout=15s --start-period=30s --retries=3 CMD curl -f http://localhost:8000/healthcheck || exit 1 + +CMD [ "python", "-u", "/webfinger.py" ] \ No newline at end of file