Update 2 files
- /Dockerfile - /totp.sh
This commit is contained in:
21
Dockerfile
Normal file
21
Dockerfile
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
FROM ubuntu:jammy
|
||||||
|
|
||||||
|
ENV DEBIAN_FRONTEND=noninteractive
|
||||||
|
ENV TZ=Europe/Moscow
|
||||||
|
|
||||||
|
WORKDIR /software
|
||||||
|
|
||||||
|
RUN \
|
||||||
|
apt update && \
|
||||||
|
apt install 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 && \
|
||||||
|
make linux-amd64 && \
|
||||||
|
cd ./bin && ln -s ./totp-linux-amd64 /usr/local/bin
|
||||||
|
|
||||||
|
ENV PATH=$PATH:/usr/local/bin
|
||||||
|
|
||||||
|
ENTRYPOINT ["tini", "--"]
|
||||||
|
CMD ["sleep","infinity"]
|
||||||
Reference in New Issue
Block a user