Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
C-Luddy committed Nov 10, 2023
2 parents 21e15b2 + 874852d commit 38d26ca
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ WORKDIR /App
# Copy everything
COPY . ./
# Restore as distinct layers
RUN dotnet restore EchoRelay.App.Headless
RUN dotnet restore EchoRelay.Cli
# Build and publish a release
RUN dotnet publish EchoRelay.App.Headless -c Release -o out
RUN dotnet publish EchoRelay.Cli -c Release -o out

# Build runtime image
FROM mcr.microsoft.com/dotnet/aspnet:7.0
WORKDIR /App
COPY --from=build-env /App/out .
ENTRYPOINT ["dotnet", "EchoRelay.App.Headless.dll"]
ENTRYPOINT ["dotnet", "EchoRelay.Cli.dll"]

0 comments on commit 38d26ca

Please sign in to comment.