make fpm the command, not the entrypoint, to make it easier to use from CI tools

This commit is contained in:
Chris R 2017-10-25 12:40:45 +01:00
parent ecb9c7447e
commit 9971f2a29d
13 changed files with 17 additions and 65 deletions

View file

@ -1,9 +1,5 @@
FROM centos:5
ENV TINI_VERSION v0.10.0
ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini /tini
RUN chmod +x /tini
RUN set -x \
&& yum install -y ruby-devel rubygems gcc make rpmdevtools \
&& gem install json -v 1.8.3 \
@ -13,4 +9,4 @@ RUN set -x \
WORKDIR /src/
ENTRYPOINT ["/tini", "-g", "--", "/usr/local/bin/fpm"]
CMD /usr/local/bin/fpm

View file

@ -1,9 +1,5 @@
FROM centos:6
ENV TINI_VERSION v0.10.0
ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini /tini
RUN chmod +x /tini
RUN set -x \
&& yum install -y ruby-devel rubygems gcc make rpmdevtools \
&& gem install json -v 1.8.3 \
@ -13,4 +9,4 @@ RUN set -x \
WORKDIR /src/
ENTRYPOINT ["/tini", "-g", "--", "/usr/bin/fpm"]
CMD /usr/bin/fpm

View file

@ -1,9 +1,5 @@
FROM centos:7
ENV TINI_VERSION v0.10.0
ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini /tini
RUN chmod +x /tini
RUN set -x \
&& yum install -y ruby-devel rubygems gcc make rpmdevtools \
&& gem install fpm \
@ -12,4 +8,4 @@ RUN set -x \
WORKDIR /src/
ENTRYPOINT ["/tini", "-g", "--", "/usr/local/bin/fpm"]
CMD /usr/local/bin/fpm