Files
totp-docker/Dockerfile
2023-09-13 20:25:53 +00:00

22 lines
549 B
Docker

FROM ubuntu:jammy
ENV DEBIAN_FRONTEND=noninteractive
ENV TZ=Europe/Moscow
WORKDIR /software
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 && \
cd /software && git clone https://github.com/arcanericky/totp.git && \
cd totp && make linux-amd64 && \
cd ./bin && ln -s ./totp-linux-amd64 /usr/local/bin
ENV PATH=$PATH:/usr/local/bin
ENTRYPOINT ["tini", "--"]
CMD ["sleep","infinity"]