client dockerfile

This commit is contained in:
谭勇
2023-04-06 13:02:50 +08:00
parent e1be4523ed
commit 98cc7ead6e
2 changed files with 20 additions and 6 deletions
+14
View File
@@ -0,0 +1,14 @@
FROM openjdk:8-jdk-alpine
#同步时间
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories && \
apk update && apk add wget unzip vim && apk add -U tzdata && \
ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo 'Asia/Shanghai' >/etc/timezone \
&& /bin/bash
RUN mkdir -p /root/neutrino-proxy/config
WORKDIR /root/neutrino-proxy
COPY target/neutrino-proxy-client.jar /root/neutrino-proxy/neutrino-proxy-client.jar
COPY src/main/resources/app.yml /root/neutrino-proxy/config
#VOLUME ["/root/neutrino-proxy"]
ENTRYPOINT ["java","-jar","neutrino-proxy-client.jar","config=./config/app.yml"]
#docker run -it -d --restart=always --name np_client -e SERVER_IP=127.0.0.1
@@ -14,10 +14,10 @@ neutrino:
all-idle-time-seconds: 0
client:
thread-count: 50
key-store-password: 123456
jks-path: classpath:/test.jks
server-ip: localhost
server-port: 9002
ssl-enable: true
key-store-password: ${STORE_PASS:123456}
jks-path: ${JKS_PATH:classpath:/test.jks}
server-ip: ${SERVER_IP:localhost}
server-port: ${SERVER_PORT:9002}
ssl-enable: ${SSL_ENABLE:true}
obtain-license-interval: 5
license-key: b0a907332b474b25897c4dcb31fc7eb6
license-key: ${LICENSE_KEY:b0a907332b474b25897c4dcb31fc7eb6}