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 use dotnet 7.0 (#891)
Browse files Browse the repository at this point in the history
* update dockerfile dotnet version to 7.0

* add github actions for a docker build test

* fix docker build context

* update step versions
  • Loading branch information
gsmachado authored Feb 23, 2023
1 parent b8cf80d commit 8345b6e
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/docker-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Docker Build Test

on: pull_request

jobs:
docker-build-test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v2
- name: Build-Test
run: |
docker buildx build \
--no-cache \
--tag ghcr.io/neo-project/neo-node:latest \
--platform linux/amd64,linux/arm64 \
./
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:6.0 AS Build
FROM 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:6.0 AS Final
FROM 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 8345b6e

Please sign in to comment.