123456789101112131415161718 |
- FROM alpine:3.16
- RUN apk add tzdata python3 py3-pip && \
- pip3 install --upgrade pyotp pyqrcode
- COPY --chown=1000:1000 totp/ /opt/totp
- USER 1000:1000
- WORKDIR /opt/totp/
- ENTRYPOINT ["python3"]
- CMD ["main.py"]
- HEALTHCHECK --interval=60s --timeout=10s --retries=3 --start-period=10s \
- CMD wget -q -S localhost:8000 2>&1 | grep -q "404"
- EXPOSE 8000
|