-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
31 lines (25 loc) · 860 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
30
31
ARG FRM='testdasi/ubuntu-base'
ARG TAG='latest'
ARG DEBIAN_FRONTEND='noninteractive'
FROM ${FRM}:${TAG}
ARG FRM
ARG TAG
ARG TARGETPLATFORM
## 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
## execute execute execute ##
RUN /bin/bash /testdasi/scripts-install/install-openvpn-client-aio-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