修改.net6 dockerfile

This commit is contained in:
dd 2022-01-24 23:19:10 +08:00
parent 30f07f7172
commit 3708c04236

View File

@ -1,6 +1,6 @@
#See https://aka.ms/containerfastmode to understand how Visual Studio uses this Dockerfile to build your images for faster debugging.
FROM mcr.microsoft.com/dotnet/aspnet:6.0-buster-slim AS base
FROM mcr.microsoft.com/dotnet/aspnet:6.0 AS base
WORKDIR /app
EXPOSE 518
EXPOSE 1888
@ -9,7 +9,7 @@ RUN apt-get update
RUN apt-get install libgdiplus -y
RUN apt-get install nano -y
FROM mcr.microsoft.com/dotnet/sdk:6.0-buster-slim AS build
FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build
WORKDIR /src
COPY ["IoTGateway/IoTGateway.csproj", "IoTGateway/"]