Skip to content

Commit e5035c5

Browse files
committed
fix Dockerfile
1 parent 6aeec03 commit e5035c5

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

Dockerfile

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
FROM registry.access.redhat.com/ubi8/ubi-minimal AS builder
22

3-
RUN microdnf install gcc glibc-devel && \
4-
lua-libs make openssl openssl-devel && \
5-
pcre-devel tar zlib-devel gzip redhat-rpm-config diffutils && \
6-
&& mkdir /usr/src/haproxy && cd /usr/src/haproxy && \
3+
RUN microdnf update -y
4+
5+
RUN microdnf install gcc glibc-devel \
6+
lua-libs make openssl openssl-devel \
7+
pcre-devel tar zlib-devel gzip redhat-rpm-config diffutils
8+
9+
RUN mkdir /usr/src/haproxy && \
710
curl -s -o- https://www.haproxy.org/download/2.3/src/haproxy-2.3.17.tar.gz | tar --strip-components=1 -C /usr/src/haproxy -zxf -
811

9-
RUN make -j16 CPU=generic TARGET=linux-glibc USE_OPENSSL=1 USE_PCRE=1 USE_ZLIB=1 USE_CRYPT_H=1 USE_LINUX_TPROXY=1 USE_GETADDRINFO=1 USE_REGPARM=1 EXTRA_OBJS="contrib/prometheus-exporter/service-prometheus.o" 'ADDINC=-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' 'ADDLIB=-Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld'
12+
RUN cd /usr/src/haproxy && make -j16 CPU=generic TARGET=linux-glibc USE_OPENSSL=1 USE_PCRE=1 USE_ZLIB=1 USE_CRYPT_H=1 USE_LINUX_TPROXY=1 USE_GETADDRINFO=1 USE_REGPARM=1 EXTRA_OBJS="contrib/prometheus-exporter/service-prometheus.o" 'ADDINC=-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' 'ADDLIB=-Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld'
1013

1114
FROM --copy=builder registry.access.redhat.com/ubi8/ubi-minimal
1215

0 commit comments

Comments
 (0)