Skip to content
This repository was archived by the owner on Mar 26, 2025. It is now read-only.

Commit 32ed286

Browse files
authored
Merge pull request #14 from StoreDev/fix-docker-builds
Fix docker builds
2 parents 7eab153 + 8be73d8 commit 32ed286

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

.github/workflows/Docker.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
id: prepare
2121
run: |
2222
DOCKER_IMAGE=storedev/store-bot
23-
DOCKER_PLATFORMS=linux/amd64,linux/arm/v7,linux/arm64
23+
DOCKER_PLATFORMS=linux/amd64,linux/arm64
2424
VERSION=edge
2525
2626
if [[ $GITHUB_REF == refs/tags/* ]]; then
@@ -42,9 +42,12 @@ jobs:
4242
--build-arg BUILD_DATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ') \
4343
--build-arg VCS_REF=${GITHUB_SHA::8} \
4444
${TAGS} --file ./Dockerfile .
45-
-
45+
-
46+
name: Set up QEMU
47+
uses: docker/setup-qemu-action@v1
48+
-
4649
name: Set up Docker Buildx
47-
uses: crazy-max/ghaction-docker-buildx@v3
50+
uses: docker/setup-buildx-action@v1
4851
-
4952
name: Docker Buildx (build)
5053
run: |

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# https://hub.docker.com/_/microsoft-dotnet-core
2-
FROM mcr.microsoft.com/dotnet/core/sdk:3.1-alpine AS build
2+
FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build
33
WORKDIR /source
44

55
# copy csproj and restore as distinct layers
@@ -14,7 +14,7 @@ WORKDIR /source
1414
RUN dotnet publish -c release -o /app --no-restore
1515

1616
# final stage/image
17-
FROM mcr.microsoft.com/dotnet/core/runtime:3.1-alpine
17+
FROM mcr.microsoft.com/dotnet/runtime:6.0
1818
WORKDIR /app
1919
COPY --from=build /app ./
2020
ENTRYPOINT ["dotnet", "StoreBot.dll"]

0 commit comments

Comments
 (0)