-
Notifications
You must be signed in to change notification settings - Fork 368
/
Copy pathDockerfile
31 lines (31 loc) · 915 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
FROM alpine:3.20
ENV LANG=zh_CN.UTF-8 \
TZ=Asia/Shanghai \
PS1="\u@\h:\w \$ "
# RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories \
RUN apk add --update --no-cache \
nginx \
nginx-mod-stream \
nginx-mod-http-headers-more \
nginx-mod-http-lua \
nginx-mod-http-brotli \
nginx-mod-rtmp \
openjdk8-jre \
net-tools \
curl \
wget \
ttf-dejavu \
fontconfig \
tzdata \
logrotate \
tini \
acme.sh \
&& fc-cache -f -v \
&& ln -sf /usr/share/zoneinfo/${TZ} /etc/localtime \
&& echo "${TZ}" > /etc/timezone \
&& rm -rf /var/cache/apk/* /tmp/*
COPY target/nginxWebUI-*.jar /home/nginxWebUI.jar
COPY entrypoint.sh /usr/local/bin/entrypoint.sh
RUN ["chmod", "+x", "/usr/local/bin/entrypoint.sh"]
VOLUME ["/home/nginxWebUI"]
ENTRYPOINT ["tini", "entrypoint.sh"]