Updated Docker files
This commit is contained in:
parent
27a259e935
commit
9dd2ed6cac
@ -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"
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user