Skip to content
This repository has been archived by the owner on Dec 7, 2023. It is now read-only.

Commit

Permalink
Update Dockerfile to properly enable multi platform (#902)
Browse files Browse the repository at this point in the history
* use BUILDPLATFORM special env var to properly enable multi-arch on dotnet images

* enable manual trigger of docker tests workflow
  • Loading branch information
gsmachado authored Oct 3, 2023
1 parent d6ec9e8 commit 29d1aa9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/docker-test.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: Docker Build Test

on: pull_request
on:
pull_request:
workflow_dispatch:

jobs:
docker-build-test:
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM mcr.microsoft.com/dotnet/sdk:7.0 AS Build
FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/sdk:7.0 AS Build

COPY neo-cli /neo-cli
COPY Neo.ConsoleService /Neo.ConsoleService
Expand All @@ -7,7 +7,7 @@ COPY NuGet.Config /neo-cli
WORKDIR /neo-cli
RUN dotnet restore && dotnet publish -c Release -o /app

FROM mcr.microsoft.com/dotnet/aspnet:7.0 AS Final
FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/aspnet:7.0 AS Final
RUN apt-get update && apt-get install -y \
screen \
libleveldb-dev \
Expand Down

0 comments on commit 29d1aa9

Please sign in to comment.