forked from testdasi/grafana-unraid-stack-base
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
35 lines (28 loc) · 1.04 KB
/
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
30
31
32
33
34
35
ARG FRM='testdasi/ubuntu-base'
ARG TAG='latest'
ARG DEBIAN_FRONTEND='noninteractive'
FROM ${FRM}:${TAG}
ARG FRM
ARG TAG
## build note ##
RUN echo "$(date "+%d.%m.%Y %T") Built from ${FRM}:${TAG}" >> /build.info
## install static codes ##
RUN rm -Rf /testdasi \
&& mkdir -p /temp \
&& cd /temp \
&& curl -sL "https://github.com/testdasi/static-ubuntu/archive/main.zip" -o /temp/temp.zip \
&& unzip /temp/temp.zip \
&& rm -f /temp/temp.zip \
&& mv /temp/static-ubuntu-main /testdasi \
&& rm -Rf /testdasi/deprecated
# add correct key to verify package repository signature
RUN apt -y update && apt -y install gnupg gnupg1 gnupg2
RUN curl -sOL "https://repos.influxdata.com/influxdata-archive.key"
RUN apt-key add influxdata-archive.key
## execute execute execute ##
RUN /bin/bash /testdasi/scripts-install/install-grafana-unraid-stack-base.sh
## debug mode (comment to disable) ##
#RUN /bin/bash /testdasi/scripts-install/install-debug-mode.sh
#ENTRYPOINT ["tini", "--", "/entrypoint.sh"]
## Final clean up ##
RUN rm -Rf /testdasi