Merge branch 'master' of ssh://git.startmywifi.com:2251/AS1024/GeoFeed

This commit is contained in:
Jeff Leung 2024-02-27 20:53:28 -08:00
commit 0dfe68656d
1 changed files with 2 additions and 2 deletions

View File

@ -13,7 +13,7 @@ RUN dotnet build "./AS1024.GeoFeed.MinimalAPI.csproj" -c $BUILD_CONFIGURATION -o
FROM build AS publish FROM build AS publish
ARG BUILD_CONFIGURATION=Release ARG BUILD_CONFIGURATION=Release
RUN dotnet publish "./AS1024.GeoFeed.MinimalAPI.csproj" -c $BUILD_CONFIGURATION -o /app/publish -r linux-musl-x64 /p:StaticOpenSslLinking=true /p:StaticExecutable=true /p:StaticallyLinked=true /p:StripSymbols=true /p:DebugType=None /p:DebugSymbols=false RUN dotnet publish "./AS1024.GeoFeed.MinimalAPI.csproj" -c $BUILD_CONFIGURATION -o /app/publish /p:StaticOpenSslLinking=true /p:StaticExecutable=true /p:StaticallyLinked=true /p:StripSymbols=true /p:DebugType=None /p:DebugSymbols=false
FROM scratch AS final FROM scratch AS final
WORKDIR /tmp WORKDIR /tmp
@ -21,4 +21,4 @@ WORKDIR /app
EXPOSE 8080 EXPOSE 8080
COPY --from=publish /app/publish . COPY --from=publish /app/publish .
COPY --from=build /etc/ssl/certs/* /etc/ssl/certs/ COPY --from=build /etc/ssl/certs/* /etc/ssl/certs/
ENTRYPOINT ["./AS1024.GeoFeed.MinimalAPI"] ENTRYPOINT ["./AS1024.GeoFeed.MinimalAPI"]