forked from master-coder-ll/v2ray-web-manager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
30 lines (26 loc) · 1.01 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
FROM openjdk:8-jre
RUN set -x && \
echo "Asia/Shanghai" > /etc/timezone && \
apt-get update && \
apt-get install -y nginx && \
mkdir -p /opt/jar/db/ && \
chown 1000:nogroup /opt/jar/db/ && \
mkdir -p /opt/jar/web/ && \
chown 1000:nogroup /opt/jar/web/ && \
mkdir -p /opt/conf/ && \
chown 1000:nogroup /opt/conf/
ADD --chown=1000:nogroup ./admin.jar /opt/jar/admin.jar
ADD --chown=1000:nogroup ./dist.zip /opt/jar/dist.zip
ADD --chown=1000:nogroup ./v2ray-proxy.jar /opt/jar/v2ray-proxy.jar
ADD --chown=1000:nogroup ./conf/admin.yaml /opt/conf/admin.yaml
ADD --chown=1000:nogroup ./conf/proxy.yaml /opt/conf/proxy.yaml
ADD --chown=1000:nogroup ./conf/config.json /opt/jar/config.json
ADD --chown=1000:nogroup ./init.sh /opt/jar/run.sh
ADD --chown=root:root ./conf/v2ray-mng.conf /etc/nginx/conf.d/default.conf
RUN cd /opt/jar/ && \
unzip dist.zip -d /opt/jar/web/ && \
chmod +x /opt/jar/admin.jar && \
chmod +x /opt/jar/v2ray-proxy.jar && \
chmod +x /opt/jar/run.sh
WORKDIR /opt/jar/
CMD ["/bin/sh", "run.sh"]