﻿FROM mcr.microsoft.com/dotnet/sdk:5.0 AS build
WORKDIR /out

RUN apt-get update && apt-get install -y libgdiplus 
RUN apt-get install -y libc6-dev
RUN apt-get install -y libx11-dev
RUN apt-get install -y htop

EXPOSE 80
EXPOSE 443

# copy csproj and restore as distinct layers
COPY *.csproj ./
RUN dotnet restore

# copy and build everything else
COPY . ./
RUN dotnet publish -c Release -o out
ENTRYPOINT ["dotnet", "out/StimulMemoryTests.dll"]