Skip to content

Commit

Permalink
Use sdk 7.0 in dockerfile
Browse files Browse the repository at this point in the history
Provides support language version 11 features
  • Loading branch information
wkirschenmann committed Aug 23, 2023
1 parent d6edac0 commit fdb98a7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
ARG WORKER_DLL_IMAGE=dockerhubaneo/armonik_worker_dll:0.12.2-SNAPSHOT.6.53d5bb3
FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build
FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build
WORKDIR /src
COPY . .


WORKDIR "/src/Tests/ArmoniK.EndToEndTests/ArmoniK.EndToEndTests.Worker"

RUN dotnet publish --self-contained -c Release -r linux-x64 -f net6.0 .
RUN dotnet publish --self-contained -c Release -r linux-x64 -f net6.0 -p:RunAnalyzers=false -p:WarningLevel=0 .


FROM ${WORKER_DLL_IMAGE} AS final
Expand Down
4 changes: 2 additions & 2 deletions Worker/src/DLLWorker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#See https://aka.ms/containerfastmode to understand how Visual Studio uses this Dockerfile to build your images for faster debugging.

FROM mcr.microsoft.com/dotnet/aspnet:6.0 AS base
FROM mcr.microsoft.com/dotnet/aspnet:7.0 AS base
WORKDIR /app
ARG TARGETARCH


FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build
FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build
WORKDIR /src
COPY ["Worker/src/DLLWorker/ArmoniK.DevelopmentKit.Worker.DLLWorker.csproj", "Worker/src/DLLWorker/"]
COPY ["Common/src/Common/ArmoniK.DevelopmentKit.Common.csproj", "Common/src/Common/"]
Expand Down

0 comments on commit fdb98a7

Please sign in to comment.