diff --git a/Dockerfile b/Dockerfile index 674a24d..c3073b1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,14 +1,11 @@ #See https://aka.ms/containerfastmode to understand how Visual Studio uses this Dockerfile to build your images for faster debugging. -#Depending on the operating system of the host machines(s) that will build or run the containers, the image specified in the FROM statement may need to be changed. -#For more information, please see https://aka.ms/containercompat - -FROM mcr.microsoft.com/dotnet/aspnet:5.0 AS base +FROM mcr.microsoft.com/dotnet/aspnet:5.0-buster-slim AS base USER 1001 WORKDIR /app EXPOSE 80 -FROM mcr.microsoft.com/dotnet/sdk:5.0 AS build +FROM mcr.microsoft.com/dotnet/sdk:5.0-buster-slim AS build WORKDIR /src COPY ["Pokespearean.csproj", ""] COPY ["../Pokespearean.Models/Pokespearean.Models.csproj", "../Pokespearean.Models/"] diff --git a/Pokespearean.csproj b/Pokespearean.csproj index b647ef1..eab4929 100644 --- a/Pokespearean.csproj +++ b/Pokespearean.csproj @@ -2,7 +2,7 @@ net5.0 - Windows + Linux .