1
0
mirror of https://github.com/C9Glax/tranga-website.git synced 2025-02-24 04:00:13 +01:00

14 lines
331 B
Docker
Raw Normal View History

# syntax=docker/dockerfile:1
FROM mcr.microsoft.com/dotnet/sdk:7.0 as build-env
WORKDIR /src
COPY . /src/
RUN dotnet restore API/API.csproj
RUN dotnet publish -c Release -o /publish
2023-06-20 23:26:49 +02:00
FROM glax/tranga-base:latest as runtime
WORKDIR /publish
COPY --from=build-env /publish .
EXPOSE 6531
ENTRYPOINT ["dotnet", "/publish/API.dll"]