follow best practices
This commit is contained in:
parent
fe99a80170
commit
9a375afa88
|
@ -23,18 +23,18 @@ RUN apt-get -y update \
|
||||||
&& ./configure --with-kernel-dir=/lib/modules/$(uname -r)/build \
|
&& ./configure --with-kernel-dir=/lib/modules/$(uname -r)/build \
|
||||||
&& make && make install \
|
&& make && make install \
|
||||||
&& cd - && mkdir -p /etc/keepalived \
|
&& cd - && mkdir -p /etc/keepalived \
|
||||||
&& apt-get remove -y --purge --auto-remove curl make gcc pkg-config libssl-dev
|
&& apt-get remove -y --purge --auto-remove curl make gcc pkg-config libssl-dev \
|
||||||
|
|
||||||
# Add service directory to /container/service
|
|
||||||
ADD service /container/service
|
|
||||||
|
|
||||||
# Use baseimage install-service script and clean all
|
|
||||||
# https://github.com/osixia/docker-light-baseimage/blob/stable/image/tool/install-service
|
|
||||||
RUN /container/tool/install-service \
|
|
||||||
&& rm -f keepalived.tar.gz \
|
&& rm -f keepalived.tar.gz \
|
||||||
&& rm -rf /container/keepalived-sources \
|
&& rm -rf /container/keepalived-sources \
|
||||||
&& apt-get clean \
|
&& apt-get clean \
|
||||||
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
||||||
|
|
||||||
|
# Add service directory to /container/service
|
||||||
|
ADD service /container/service
|
||||||
|
|
||||||
|
# Use baseimage install-service script
|
||||||
|
# https://github.com/osixia/docker-light-baseimage/blob/stable/image/tool/install-service
|
||||||
|
RUN /container/tool/install-service
|
||||||
|
|
||||||
# Add default env variables
|
# Add default env variables
|
||||||
ADD environment /container/environment/99-default
|
ADD environment /container/environment/99-default
|
||||||
|
|
Loading…
Reference in New Issue