Add Dockerfile to build Debian package #9

Closed
opened 2026-02-06 19:10:48 +03:00 by OVERLORD · 3 comments
Owner

Originally created by @andrewrabert on GitHub (Dec 10, 2018).

Building packages often requires multiple steps and customized environments. Having a Dockerfile to build the Debian package:

  • Creates portable, reproducible build environments.
  • Allows one to build the Debian package on any system.
  • Documents how exactly to build the package. Our ancestor project was notoriously bad at this.

In other words - one should be able to build a Debian package doing nothing more than this. This example assumes https://github.com/jellyfin/jellyfin/issues/18 has been implemented.

$ git clone https://github.com/jellyfin/jellyfin
$ cd jellyfin/jellyfin
$ docker build -f Dockerfile.debian_package .
Originally created by @andrewrabert on GitHub (Dec 10, 2018). Building packages often requires multiple steps and customized environments. Having a Dockerfile to build the Debian package: - Creates portable, reproducible build environments. - Allows one to build the Debian package on any system. - Documents how exactly to build the package. Our ancestor project was notoriously bad at this. In other words - one should be able to build a Debian package doing nothing more than this. This example assumes https://github.com/jellyfin/jellyfin/issues/18 has been implemented. ``` $ git clone https://github.com/jellyfin/jellyfin $ cd jellyfin/jellyfin $ docker build -f Dockerfile.debian_package . ```
OVERLORD added the build label 2026-02-06 19:10:48 +03:00
Author
Owner

@joshuaboniface commented on GitHub (Dec 10, 2018):

The current build procedure is just as simple and has no dependency on Docker, just on the dotnet-sdk-2.1 package and standard debuild framework - with Mono it was a nightmare, but luckily .NET Core made this a lot easier. However I don't see a reason we can't do both, as long as the Docker setup doesn't preclude doing it the old-fashioned non-Docker way.

@joshuaboniface commented on GitHub (Dec 10, 2018): The current build procedure is just as simple and has no dependency on Docker, just on the `dotnet-sdk-2.1` package and standard `debuild` framework - with Mono it was a nightmare, but luckily .NET Core made this a lot easier. However I don't see a reason we can't do both, as long as the Docker setup doesn't preclude doing it the old-fashioned non-Docker way.
Author
Owner

@andrewrabert commented on GitHub (Dec 10, 2018):

@joshuaboniface One of the intentions of having this in addition to the Debian build files is that it will make CI/CD integration much nicer.

@andrewrabert commented on GitHub (Dec 10, 2018): @joshuaboniface One of the intentions of having this **in addition** to the Debian build files is that it will make CI/CD integration much nicer.
Author
Owner

@joshuaboniface commented on GitHub (Dec 10, 2018):

Yup agreed on the CI integration, just wanted to be sure!

@joshuaboniface commented on GitHub (Dec 10, 2018): Yup agreed on the CI integration, just wanted to be sure!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/jellyfin#9