docker: updates to docker images (#942)

This commit is contained in:
ReenigneArcher
2023-02-20 15:03:03 -05:00
committed by GitHub
parent e5d5256aed
commit 77deff12a6
13 changed files with 96 additions and 379 deletions

View File

@@ -2,6 +2,7 @@
# artifacts: true
# platforms: linux/amd64,linux/arm64/v8
# platforms_pr: linux/amd64
# no-cache-filters: sunshine-base,artifacts,sunshine
ARG BASE=ubuntu
ARG TAG=22.04
FROM ${BASE}:${TAG} AS sunshine-base
@@ -80,7 +81,7 @@ _INSTALL_CUDA
# copy repository
WORKDIR /build/sunshine/
COPY .. .
COPY --link .. .
# setup npm dependencies
RUN npm install
@@ -111,12 +112,12 @@ FROM scratch AS artifacts
ARG BASE
ARG TAG
ARG TARGETARCH
COPY --from=sunshine-build /build/sunshine/build/cpack_artifacts/Sunshine.deb /sunshine-${BASE}-${TAG}-${TARGETARCH}.deb
COPY --link --from=sunshine-build /build/sunshine/build/cpack_artifacts/Sunshine.deb /sunshine-${BASE}-${TAG}-${TARGETARCH}.deb
FROM sunshine-base as sunshine
# copy deb from builder
COPY --from=artifacts /sunshine*.deb /sunshine.deb
COPY --link --from=artifacts /sunshine*.deb /sunshine.deb
# install sunshine
RUN <<_INSTALL_SUNSHINE