1
0
mirror of https://github.com/oliverbooth/VPLink synced 2024-11-09 23:45:40 +00:00
VPLink/Dockerfile

27 lines
875 B
Docker
Raw Normal View History

2024-01-06 12:04:07 +00:00
FROM mcr.microsoft.com/dotnet/runtime:8.0 AS base
2023-08-26 12:50:06 +01:00
WORKDIR /app
2024-01-06 12:04:07 +00:00
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
2023-08-26 12:50:06 +01:00
WORKDIR /src
COPY ["VPLink/VPLink.csproj", "VPLink/"]
2023-08-26 12:50:06 +01:00
RUN dotnet restore "VPLink/VPLink.csproj"
COPY . .
WORKDIR "/src/VPLink"
2023-08-26 12:50:06 +01:00
RUN dotnet build "VPLink.csproj" -c Release -o /app/build
FROM build AS publish
RUN dotnet publish "VPLink.csproj" -c Release -o /app/publish
2023-08-26 12:50:06 +01:00
FROM base AS vpsdk
WORKDIR /vpsdk
2023-12-17 15:42:50 +00:00
ADD http://static.virtualparadise.org/dev-downloads/vpsdk_20231217_422bcbfc_linux_debian10_x86_64.tar.gz ./vpsdk.tar.gz
RUN echo "5F5710EEFC1FC2C5246434A52B9DC05F477A6EFE91394001FAA4097F5CA7BC77 vpsdk.tar.gz" | sha256sum -c -&& \
tar xfv vpsdk.tar.gz --strip-components=1 && \
rm -r vpsdk.tar.gz include
2023-08-26 12:50:06 +01:00
FROM base AS final
WORKDIR /app
COPY --from=vpsdk /vpsdk/lib/libvpsdk.so .
2023-08-26 12:50:06 +01:00
COPY --from=publish /app/publish .
ENTRYPOINT ["dotnet", "VPLink.dll"]