This commit is contained in:
xRain 2023-08-22 14:33:41 +08:00
parent 04042254f3
commit f295f21bcf

View File

@ -9,11 +9,11 @@ runs:
with: with:
entrypoint: "/bin/bash" entrypoint: "/bin/bash"
args: | args: |
-c 'echo "FROM mcr.microsoft.com/dotnet/runtime:7.0" > Dockerfile' -c 'echo "FROM mcr.microsoft.com/dotnet/runtime:7.0" > Dockerfile
-c 'echo "COPY dist /home" >> Dockerfile' echo "COPY dist /home" >> Dockerfile
-c 'echo "WORKDIR /home" >> Dockerfile' echo "WORKDIR /home" >> Dockerfile
-c 'echo "ENTRYPOINT [\"./App\"]" >> Dockerfile' echo "ENTRYPOINT [\"./App\"]" >> Dockerfile
-c "echo 已经构建完DOCKERFILE了" echo 已经构建完DOCKERFILE了"'
# - name: build .net app # - name: build .net app
# uses: docker://mcr.microsoft.com/dotnet/sdk:7.0 # uses: docker://mcr.microsoft.com/dotnet/sdk:7.0