-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
23 lines (21 loc) · 881 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM docker.io/fedora:29
MAINTAINER Kazuhisa Hara <kazuhisya@gmail.com>
ENV TZ="JST-9" \
MAINTAINER="Kazuhisa Hara <kazuhisya@gmail.com>" \
NGINX_VERSION="1.15.7" \
NGINX_RELEASE="1" \
SRPM_DIST="el7_4.ngx"
RUN dnf install -y --setopt=tsflags=nodocs \
gcc \
make \
compat-openssl10-devel \
pcre-devel \
rpm-build \
redhat-lsb-core
COPY / /nginx-mainline-for-fedora
RUN curl -OL http://nginx.org/packages/mainline/centos/7/SRPMS/nginx-${NGINX_VERSION}-${NGINX_RELEASE}.${SRPM_DIST}.src.rpm && \
rpm -ivh ./nginx-${NGINX_VERSION}-${NGINX_RELEASE}.${SRPM_DIST}.src.rpm && \
patch -u /root/rpmbuild/SPECS/nginx.spec /nginx-mainline-for-fedora/nginx-fedora.patch && \
rpmbuild -ba /root/rpmbuild/SPECS/nginx.spec && \
dnf install -y --setopt=tsflags=nodocs /root/rpmbuild/RPMS/x86_64/nginx-[^d.+].* copr-cli
CMD ["nginx", "-T"]