Skip to content

Commit

Permalink
install docker on aot images
Browse files Browse the repository at this point in the history
  • Loading branch information
baronfel committed Sep 20, 2023
1 parent 351822f commit 9439984
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/aot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,26 +15,26 @@ jobs:
steps:
- name: Get the code
uses: actions/checkout@v2
- name: diagnose paths
run: ls -la
- name: diagnose docker
run: echo $(which docker)
- name: diagnose docekr socket
run: ls /var/run/docker.sock
- name: check prereqs
run: |
docker run --rm \
-v $(pwd)/src:/src \
-v /var/run/docker.sock:/var/run/docker.sock \
-v /usr/bin/docker:/usr/bin/docker \
-w /src/aot-sample \
mcr.microsoft.com/dotnet/nightly/sdk:8.0-alpine-aot \
docker --info
apk add docker && docker --info
- name: build the app AOT-style
run: |
docker run --rm \
-v $(pwd)/src:/src \
-v /var/run/docker.sock:/var/run/docker.sock \
-v /usr/bin/docker:/usr/bin/docker \
-w /src/aot-sample \
mcr.microsoft.com/dotnet/nightly/sdk:8.0-alpine-aot \
dotnet publish /t:PublishContainer \
apk add docker && dotnet publish /t:PublishContainer \
/p:ContainerBaseImage=mcr.microsoft.com/dotnet/runtime-deps:8.0-alpine-extra \
--use-current-runtime
-bl
Expand Down

0 comments on commit 9439984

Please sign in to comment.