mudando Dockerfile pra debian

This commit is contained in:
José Henrique Ivanchechen 2023-08-24 14:25:54 -03:00
parent 09c7345e68
commit 6f93461ed9
2 changed files with 7 additions and 2 deletions

View File

@ -1,4 +1,4 @@
FROM mcr.microsoft.com/dotnet/sdk:6.0-alpine AS build-env FROM mcr.microsoft.com/dotnet/sdk:6.0-bullseye-slim AS build-env
WORKDIR /App WORKDIR /App
# Copy everything # Copy everything
@ -11,10 +11,14 @@ RUN dotnet restore
RUN dotnet build -c Release -o out RUN dotnet build -c Release -o out
# Build runtime image # Build runtime image
FROM mcr.microsoft.com/dotnet/aspnet:6.0-alpine FROM mcr.microsoft.com/dotnet/aspnet:6.0-bullseye-slim
WORKDIR /App WORKDIR /App
RUN wget https://files.ivanch.me/api/public/dl/QFCLgtrG/simpleimage.png && \
wget https://files.ivanch.me/api/public/dl/E0VLgWbx/bigimage.png && \
rm -rf runtimes
COPY --from=build-env /App/out . COPY --from=build-env /App/out .
ENTRYPOINT ["dotnet", "/App/TCC.APP.dll"] ENTRYPOINT ["dotnet", "/App/TCC.APP.dll"]

View File

@ -7,6 +7,7 @@
<RootNamespace>tcc_app</RootNamespace> <RootNamespace>tcc_app</RootNamespace>
<PlatformTarget>AnyCPU</PlatformTarget> <PlatformTarget>AnyCPU</PlatformTarget>
<AllowUnsafeBlocks>True</AllowUnsafeBlocks> <AllowUnsafeBlocks>True</AllowUnsafeBlocks>
<MagickCopyNativeLinux>true</MagickCopyNativeLinux>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>