Update Dockerfile

This commit is contained in:
2023-09-13 20:42:28 +00:00
parent 3e5510969b
commit 88d3b91b87

View File

@@ -3,18 +3,20 @@ FROM ubuntu:jammy
ENV DEBIAN_FRONTEND=noninteractive ENV DEBIAN_FRONTEND=noninteractive
ENV TZ=Europe/Moscow ENV TZ=Europe/Moscow
WORKDIR /software
RUN \ RUN \
apt update && \ apt update && \
apt install -y apt apt-utils sudo git wget curl make gcc tini && \ apt install -y apt apt-utils sudo git wget curl make gcc tini && \
apt upgrade -y && \ apt upgrade -y && \
apt install -y golang && \ apt install -y golang && \
apt autoremove --purge -y && apt clean -y && \ apt autoremove --purge -y && apt clean -y && \
mkdir -p /software && \
cd /software && git clone https://github.com/arcanericky/totp.git && \ cd /software && git clone https://github.com/arcanericky/totp.git && \
cd totp && make linux-amd64 && \ cd totp && make linux-amd64 && \
cd ./bin && ln -s ./totp-linux-amd64 /usr/local/bin 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 ENV PATH=$PATH:/usr/local/bin
ENTRYPOINT ["tini", "--"] ENTRYPOINT ["tini", "--"]