Files
totp-docker/Dockerfile
2023-10-14 00:41:39 +03:00

23 lines
664 B
Docker

FROM ubuntu:jammy
ENV DEBIAN_FRONTEND=noninteractive
ENV TZ=Europe/Moscow
RUN \
apt update && \
apt install -y apt apt-utils sudo git wget curl make gcc tini && \
apt upgrade -y && \
apt install -y golang && \
apt autoremove --purge -y && apt clean -y && \
mkdir -p /software && \
cd /software && git clone https://github.com/arcanericky/totp.git && \
cd totp && make linux-amd64 && \
mv ./bin/totp-linux-amd64 /usr/local/bin/totp && \
rm -rf /software && \
chmod +x /usr/local/bin/totp && \
ln -s /usr/local/bin/totp /bin/totp
ENV PATH=$PATH:/usr/local/bin
ENTRYPOINT ["tini", "--"]
CMD ["sleep","infinity"]