Skip to content

Commit

Permalink
Update docker files for .NET 6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastienros committed Nov 9, 2021
1 parent f1c57f5 commit e29cf11
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
FROM mcr.microsoft.com/dotnet/sdk:5.0 AS build-env
FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build-env
LABEL stage=build-env
WORKDIR /app

# Copy and build
COPY ./src /app
RUN dotnet publish /app/OrchardCore.Cms.Web -c Release -o ./build/release --framework net5.0
RUN dotnet publish /app/OrchardCore.Cms.Web -c Release -o ./build/release --framework net6.0

# Build runtime image
FROM mcr.microsoft.com/dotnet/aspnet:5.0
FROM mcr.microsoft.com/dotnet/aspnet:6.0
EXPOSE 80
ENV ASPNETCORE_URLS http://+:80
WORKDIR /app
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile-CI
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This Docker file is intended for the CI
# A prerequisite is a published application in the .build/release

FROM mcr.microsoft.com/dotnet/aspnet:5.0
FROM mcr.microsoft.com/dotnet/aspnet:6.0

EXPOSE 80
ENV ASPNETCORE_URLS http://+:80
Expand Down

0 comments on commit e29cf11

Please sign in to comment.