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=fedora
ARG TAG=37
FROM ${BASE}:${TAG} AS sunshine-base
@@ -78,7 +79,7 @@ _INSTALL_CUDA
# copy repository
WORKDIR /build/sunshine/
COPY .. .
COPY --link .. .
# setup npm dependencies
RUN npm install
@@ -109,12 +110,12 @@ FROM scratch AS artifacts
ARG BASE
ARG TAG
ARG TARGETARCH
COPY --from=sunshine-build /build/sunshine/build/cpack_artifacts/Sunshine.rpm /sunshine-${BASE}-${TAG}-${TARGETARCH}.rpm
COPY --link --from=sunshine-build /build/sunshine/build/cpack_artifacts/Sunshine.rpm /sunshine-${BASE}-${TAG}-${TARGETARCH}.rpm
FROM sunshine-base as sunshine
# copy deb from builder
COPY --from=artifacts /sunshine*.rpm /sunshine.rpm
COPY --link --from=artifacts /sunshine*.rpm /sunshine.rpm
# install sunshine
RUN <<_INSTALL_SUNSHINE