黄宗银 1 year ago
parent
commit
8e73c08684
2 changed files with 9 additions and 7 deletions
  1. 7 1
      ApqDotnet/dotnet6/Dockerfile
  2. 2 6
      ApqDotnet/dotnet6/build.txt

+ 7 - 1
ApqDotnet/dotnet6/Dockerfile

@@ -4,4 +4,10 @@ FROM mcr.microsoft.com/dotnet/aspnet:6.0
 ENV LANG zh-Hans
 ENV LANG zh-Hans
 
 
 # Install extensions
 # Install extensions
-RUN apt-get update && apt-get install -y tar jq procps net-tools
+RUN mkdir logs && chmod 777 logs && apt-get update \
+    && apt-get install -y tar jq procps net-tools git curl unzip p7zip-full telnet \
+    && apt-get autoremove -y \
+    && apt-get clean
+    
+WORKDIR /app
+VOLUME ["/app"]

+ 2 - 6
ApqDotnet/dotnet6/build.txt

@@ -1,15 +1,11 @@
-
-发布到文件夹后,复制到 DockerImg/dotnet6 并提交。
-然后到服务器上创建Docker镜像。
-
 # 新开一个会话(dbx),在此会话中编译
 # 新开一个会话(dbx),在此会话中编译
 tmux new -s dbx
 tmux new -s dbx
 # 切换到dbx会话
 # 切换到dbx会话
 tmux attach-session -t dbx
 tmux attach-session -t dbx
 
 
-#git clone https://gogs-qh.zalhb.com/ApqTeam/DockerImg.git
+#git clone https://gogs-apq2.zalhb.com/Apq/dockerimg.git
 
 
-cd ApqPublish/dotnet6/
+cd ApqDotnet/dotnet6/
 
 
 
 
 -- 以下为国内机器构建并推送到阿里云 -------------------------------------------------
 -- 以下为国内机器构建并推送到阿里云 -------------------------------------------------