Skip to content

Commit

Permalink
attempt to exclude buildplatform variable
Browse files Browse the repository at this point in the history
  • Loading branch information
gsmachado committed Feb 18, 2024
1 parent 9bab241 commit 25bc1ef
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docker/Dockerfile.neo-node-with-plugins
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Build the plugins
FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/sdk:8.0 AS PluginBuild
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS PluginBuild

COPY ./neo-modules /neo-modules
WORKDIR /neo-modules
Expand Down Expand Up @@ -33,7 +33,7 @@ RUN mkdir -p /plugins && \
| xargs -I {} sh -c 'echo {} && dotnet publish ./src/{} -c Release /p:ErrorOnDuplicatePublishOutputFiles=false -o /plugins && mkdir -p /plugins/{} && cp /plugins/{}.* /plugins/{}/ && if [ -e ./src/{}/config.json ]; then cp ./src/{}/config.json /plugins/{}/config.json; fi'

# Build the neo-cli
FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/sdk:8.0 AS NeoCliBuild
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS NeoCliBuild

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

# Final image: neo-node-with-plugins :-)
FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/sdk:7.0 AS NeoCliFinal
FROM mcr.microsoft.com/dotnet/sdk:7.0 AS NeoCliFinal

LABEL org.opencontainers.image.source https://github.com/axlabs/neo3-privatenet-docker

Expand Down

0 comments on commit 25bc1ef

Please sign in to comment.