mirror of
https://github.com/clearlinux/dockerfiles.git
synced 2026-06-29 00:55:57 +00:00
8a8844c3e6
To help analyze the container image size by layers, assume each container image be comprised of: Layer 1: clearlinux:latest Layer 2: swupd update Other layers: the container configurations With this, we can continue to optimize layer size accordingly. Signed-off-by: Qi Zheng <qi.zheng@intel.com>
19 lines
422 B
Docker
19 lines
422 B
Docker
FROM clearlinux:latest
|
|
MAINTAINER sophia.gong@intel.com
|
|
|
|
ARG swupd_args
|
|
|
|
RUN swupd update --no-boot-update $swupd_args
|
|
|
|
RUN swupd bundle-add haproxy $swupd_args \
|
|
&& rm -rf /var/lib/swupd/* \
|
|
&& mkdir -p /usr/local/etc/haproxy
|
|
|
|
STOPSIGNAL SIGUSR1
|
|
|
|
COPY docker-entrypoint.sh /
|
|
COPY haproxy.cfg /usr/local/etc/haproxy
|
|
|
|
ENTRYPOINT ["/docker-entrypoint.sh"]
|
|
CMD ["haproxy", "-f", "/usr/local/etc/haproxy/haproxy.cfg"]
|