mirror of https://github.com/ivanch/tcc.git
mudando Dockerfile pra debian
This commit is contained in:
parent
09c7345e68
commit
6f93461ed9
|
@ -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
|
||||
|
||||
# Copy everything
|
||||
|
@ -11,10 +11,14 @@ RUN dotnet restore
|
|||
RUN dotnet build -c Release -o out
|
||||
|
||||
# Build runtime image
|
||||
FROM mcr.microsoft.com/dotnet/aspnet:6.0-alpine
|
||||
FROM mcr.microsoft.com/dotnet/aspnet:6.0-bullseye-slim
|
||||
|
||||
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 .
|
||||
|
||||
ENTRYPOINT ["dotnet", "/App/TCC.APP.dll"]
|
|
@ -7,6 +7,7 @@
|
|||
<RootNamespace>tcc_app</RootNamespace>
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
|
||||
<MagickCopyNativeLinux>true</MagickCopyNativeLinux>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
|
Loading…
Reference in New Issue