mirror of
https://github.com/oliverbooth/VPLink
synced 2024-11-09 23:25:42 +00:00
fix: include vpsdk when creating container image
Picked from 8c85369c4c
This commit is contained in:
parent
da87db85b3
commit
2f9f418487
@ -14,7 +14,15 @@ RUN dotnet build "VPLink.csproj" -c Release -o /app/build
|
|||||||
FROM build AS publish
|
FROM build AS publish
|
||||||
RUN dotnet publish "VPLink.csproj" -c Release -o /app/publish /p:UseAppHost=false
|
RUN dotnet publish "VPLink.csproj" -c Release -o /app/publish /p:UseAppHost=false
|
||||||
|
|
||||||
|
FROM base AS vpsdk
|
||||||
|
WORKDIR /vpsdk
|
||||||
|
ADD http://static.virtualparadise.org/dev-downloads/vpsdk_20210802_5afc54ae_linux_debian-stretch_x86_64.tar.gz ./vpsdk.tar.gz
|
||||||
|
RUN echo "9156B19DD83D2E2290F6C49228C99320478758C41D958E50030078A62DB6417B vpsdk.tar.gz" | sha256sum -c -&& \
|
||||||
|
tar xfv vpsdk.tar.gz --strip-components=1 && \
|
||||||
|
rm -r vpsdk.tar.gz include
|
||||||
|
|
||||||
FROM base AS final
|
FROM base AS final
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
COPY --from=vpsdk /vpsdk/lib/libvpsdk.so .
|
||||||
COPY --from=publish /app/publish .
|
COPY --from=publish /app/publish .
|
||||||
ENTRYPOINT ["dotnet", "VPLink.dll"]
|
ENTRYPOINT ["dotnet", "VPLink.dll"]
|
||||||
|
Loading…
Reference in New Issue
Block a user