luoyutianyang commited on
Commit
67a6ed9
·
1 Parent(s): 2042573

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +12 -5
Dockerfile CHANGED
@@ -1,4 +1,4 @@
1
- FROM openjdk:17-slim
2
 
3
  # 设置时区
4
  ENV TZ Asia/Shanghai
@@ -10,14 +10,21 @@ WORKDIR /app
10
  COPY bin /app/bin
11
  COPY lib /app/lib
12
  COPY txlib /app/txlib
 
13
 
14
  # 设置命令
15
  RUN chmod -R 777 /tmp
16
  RUN chmod -R 777 /app
17
- RUN sed 's/"key": ".*"/"key": "'"$KEY_VALUE"'"/' txlib/$TXLIB_VERSION/config.json > /app/txlib/$TXLIB_VERSION/config.json
18
 
19
- # 运行
20
- CMD bash bin/unidbg-fetch-qsign --basePath=txlib/$TXLIB_VERSION
 
 
 
 
21
 
22
  # 暴露端口
23
- EXPOSE 7860
 
 
 
 
1
+ FROM debian
2
 
3
  # 设置时区
4
  ENV TZ Asia/Shanghai
 
10
  COPY bin /app/bin
11
  COPY lib /app/lib
12
  COPY txlib /app/txlib
13
+ COPY app /app/app
14
 
15
  # 设置命令
16
  RUN chmod -R 777 /tmp
17
  RUN chmod -R 777 /app
 
18
 
19
+ # 安装依赖
20
+ RUN apt update
21
+ RUN apt install jq -y
22
+ RUN apt install curl -y
23
+ RUN apt install procps -y
24
+ RUN apt install openjdk-17-jdk -y
25
 
26
  # 暴露端口
27
+ EXPOSE 7860
28
+
29
+ # 运行
30
+ CMD bash app