twofauth-rs (0.3.0)

Published 2026-10-28 08:38:42 +00:00 by wt in wt/twofauth-rs

Installation

docker pull gitea.wthome.ru/wt/twofauth-rs:0.3.0
sha256:874504c2b621433ef8f16e52695eba1e0f0bd5c4730a739ab0a843fe9d3a9475

Image Layers

# debian.sh --arch 'amd64' out/ 'bookworm' '@1793059200'
RUN /bin/sh -c apt-get update && apt-get install -y --no-install-recommends ca-certificates && rm -rf /var/lib/apt/lists/* # buildkit
RUN /bin/sh -c groupadd --gid 10001 twofauth && useradd --uid 10001 --gid twofauth --no-create-home twofauth && mkdir /data && chown twofauth:twofauth /data # buildkit
WORKDIR /app
COPY /src/target/release/twofauth-rs /usr/local/bin/twofauth-rs # buildkit
COPY public ./public # buildkit
COPY LICENSE NOTICE ./ # buildkit
USER 10001:10001
ENV DATABASE_URL=sqlite:///data/2fauth.sqlite LISTEN_ADDR=0.0.0.0:8080 RUST_PUBLIC_DIR=/app/public STORAGE_PATH=/data/storage PASSPORT_KEY_PATH=/data/storage
EXPOSE [8080/tcp]
ENTRYPOINT ["twofauth-rs"]
CMD ["serve"]
Details
Container
2026-10-28 08:38:42 +00:00
1
OCI / Docker
linux/amd64
43 MiB
Versions (1) View all
0.3.0 2026-10-28