Updated Docker files

This commit is contained in:
Murat Cakir 2022-11-26 03:47:02 +01:00
parent 27a259e935
commit 9dd2ed6cac
3 changed files with 4 additions and 4 deletions

View File

@ -3,7 +3,7 @@
# the source within the container
# -----------------------------------------------------------
FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build
FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build
# Copy solution and source
ARG SOLUTION=Smartstore.sln
@ -26,7 +26,7 @@ RUN dotnet publish Smartstore.Web.csproj -c Release -o /app/release/publish \
--no-restore
# Build Docker image
FROM mcr.microsoft.com/dotnet/aspnet:6.0
FROM mcr.microsoft.com/dotnet/aspnet:7.0
EXPOSE 80
EXPOSE 443
ENV ASPNETCORE_URLS "http://+:80;https://+:443"

View File

@ -4,7 +4,7 @@
# is running Windows containers.
# -----------------------------------------------------------
ARG ASPNET_TAG=6.0
ARG ASPNET_TAG=7.0
FROM mcr.microsoft.com/dotnet/aspnet:${ASPNET_TAG}
EXPOSE 80

View File

@ -2,7 +2,7 @@
# Creates a Docker image from an existing build artifact
# -----------------------------------------------------------
ARG ASPNET_TAG=6.0
ARG ASPNET_TAG=7.0
FROM mcr.microsoft.com/dotnet/aspnet:${ASPNET_TAG}
EXPOSE 80