ytapic/Dockerfile

16 lines
408 B
Docker
Raw Normal View History

2022-09-05 16:42:30 +00:00
FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build
WORKDIR /src
RUN apt install git
RUN git clone https://gitlab.tesses.net/tesses50/ytapic.git .
RUN dotnet restore "./ytapic.csproj" --disable-parallel
RUN dotnet publish "./ytapic.csproj" -c Release -o /app --no-restore
#serve stage
FROM mcr.microsoft.com/dotnet/aspnet:6.0
WORKDIR /app
COPY --from=build /app ./
2022-09-05 16:46:47 +00:00
EXPOSE 80
2022-09-05 16:42:30 +00:00
ENTRYPOINT ["dotnet","ytapic.dll"]