-
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Dockerfile
29 lines (22 loc) · 806 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
FROM ubuntu:jammy
ARG DEBIAN_FRONTEND="noninteractive"
ENV DOTNET_SYSTEM_GLOBALIZATION_INVARIANT="1"
VOLUME ["/config"]
# install packages
RUN apt update && \
apt install -y --no-install-recommends --no-install-suggests \
ca-certificates jq curl \
locales tzdata python3 python3-pip && \
# generate locale
locale-gen en_US.UTF-8 && \
# clean up
apt autoremove -y && \
apt clean && \
rm -rf /tmp/* /var/lib/apt/lists/* /var/tmp/*
# install packages
RUN pip3 install apprise
RUN mkdir "/app" && curl -L -o /app/SARotate $(curl -Ls https://api.github.com/repos/saltydk/sarotate/releases/latest | grep "browser_download_url" | cut -d '"' -f 4 | grep linux-x64) && \
chmod -R u=rwX,go=rX "/app" && \
chmod +x /app/SARotate
WORKDIR /config
CMD /app/SARotate -v