Skip to content

Commit f94f837

Browse files
committed
ah, the good ol' dotnet-8 breaking change
1 parent 2a01e63 commit f94f837

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/Dockerfile

+5-4
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,18 @@
33
FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base
44
WORKDIR /app
55
EXPOSE 80
6-
EXPOSE 443
6+
#EXPOSE 443
77

88
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
99
ARG BUILD_CONFIGURATION=Release
10-
ENV ASPNETCORE_HTTPS_PORTS=443
11-
ENV ASPNETCORE_HTTP_PORTS=80
10+
ENV ASPNETCORE_URLS=http://+:80
11+
#ENV ASPNETCORE_HTTPS_PORTS=443
12+
#ENV ASPNETCORE_HTTP_PORTS=80
1213

1314
ADD Ecowitt.Controller/ /src/Ecowitt.Controller
1415
WORKDIR "/src/Ecowitt.Controller"
1516
RUN dotnet restore "./Ecowitt.Controller.csproj"
16-
RUN dotnet build "./Ecowitt.Controller.csproj" -c $BUILD_CONFIGURATION -o /app/build
17+
# RUN dotnet build "./Ecowitt.Controller.csproj" -c $BUILD_CONFIGURATION -o /app/build
1718

1819
FROM build AS publish
1920
ARG BUILD_CONFIGURATION=Release

0 commit comments

Comments
 (0)