Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Remove all, we'll include only the necessary folders via !
*

!sunshine
!cmake
!assets
!scripts
!third-party
!CMakeLists.txt
!*.in
!LICENSE
35 changes: 26 additions & 9 deletions scripts/Dockerfile-debian → Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
FROM debian:bullseye AS sunshine-debian

# Debian Bullseye end of life is TBD
FROM debian:bullseye AS sunshine-build

ARG DEBIAN_FRONTEND=noninteractive
ARG TZ="Europe/London"
Expand All @@ -11,7 +9,7 @@ RUN apt-get update -y && \
apt-get install -y \
build-essential \
cmake \
git \
rpm \
libavdevice-dev \
libboost-filesystem-dev \
libboost-log-dev \
Expand All @@ -31,10 +29,29 @@ RUN apt-get update -y && \
libxrandr-dev \
libxtst-dev \
nvidia-cuda-dev \
nvidia-cuda-toolkit \
&& apt-get clean \
nvidia-cuda-toolkit

ADD . /root/sunshine/
RUN /root/sunshine/scripts/build-sunshine.sh

WORKDIR /root/sunshine-build
RUN cpack -G RPM
RUN cpack -G DEB

#################################################
FROM debian:bullseye-slim AS sunshine

COPY --from=sunshine-build /root/sunshine-build/Sunshine.deb /Sunshine.deb
COPY --from=sunshine-build /root/sunshine-build/Sunshine.rpm /Sunshine.rpm

RUN apt-get update -y && \
apt-get install -y -f /Sunshine.deb \
&& rm -rf /var/lib/apt/lists/*

# Entrypoint
COPY build-private.sh /root/build.sh
ENTRYPOINT ["/root/build.sh", "-deb"]
# Port configuration taken from https://github.com/moonlight-stream/moonlight-docs/wiki/Setup-Guide#manual-port-forwarding-advanced
EXPOSE 47984-47990/tcp
EXPOSE 48010
EXPOSE 48010/udp
EXPOSE 47998-48000/udp

ENTRYPOINT ["/usr/bin/sunshine"]
30 changes: 0 additions & 30 deletions scripts/Dockerfile-fedora_33

This file was deleted.

34 changes: 0 additions & 34 deletions scripts/Dockerfile-fedora_35

This file was deleted.

63 changes: 0 additions & 63 deletions scripts/Dockerfile-ubuntu_18_04

This file was deleted.

46 changes: 0 additions & 46 deletions scripts/Dockerfile-ubuntu_20_04

This file was deleted.

40 changes: 0 additions & 40 deletions scripts/Dockerfile-ubuntu_21_04

This file was deleted.

39 changes: 0 additions & 39 deletions scripts/Dockerfile-ubuntu_21_10

This file was deleted.

Loading