You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
552 B
15 lines
552 B
6 years ago
|
FROM centos:7
|
||
|
ARG HOME=/build
|
||
|
RUN mkdir /build && \
|
||
|
yum install -y @buildsys-build rpmdevtools yum-plugins-core && \
|
||
|
rpm -Uvh https://packages.microsoft.com/config/rhel/7/packages-microsoft-prod.rpm && \
|
||
|
rpmdev-setuptree
|
||
|
|
||
|
WORKDIR /build/rpmbuild
|
||
|
COPY ./deployment/centos-package-x64/pkg-src/jellyfin.spec SPECS
|
||
|
COPY ./deployment/centos-package-x64/pkg-src/ SOURCES
|
||
|
|
||
|
RUN spectool -g -R SPECS/jellyfin.spec && \
|
||
|
rpmbuild -bs SPECS/jellyfin.spec && \
|
||
|
yum-builddep -y SRPMS/jellyfin-*.src.rpm && \
|
||
|
rpmbuild -bb SPECS/jellyfin.spec;
|