feat: add Eduroam Analyzer service
This commit is contained in:
19
asn-updater/Dockerfile
Normal file
19
asn-updater/Dockerfile
Normal file
@@ -0,0 +1,19 @@
|
||||
FROM python:3.12-alpine
|
||||
|
||||
RUN apk add --no-cache ca-certificates tzdata curl tar && update-ca-certificates
|
||||
WORKDIR /app
|
||||
|
||||
COPY update.py /app/update.py
|
||||
COPY entrypoint.sh /app/entrypoint.sh
|
||||
COPY healthcheck.sh /app/healthcheck.sh
|
||||
|
||||
RUN pip install --no-cache-dir requests==2.32.3 \
|
||||
&& chmod +x /app/entrypoint.sh /app/healthcheck.sh
|
||||
|
||||
ENV OUT_DIR=/data
|
||||
VOLUME ["/data"]
|
||||
|
||||
ENTRYPOINT ["/app/entrypoint.sh"]
|
||||
|
||||
HEALTHCHECK --interval=5m --timeout=10s --start-period=30s --retries=3 \
|
||||
CMD /app/healthcheck.sh
|
||||
Reference in New Issue
Block a user