Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

release/2.0.4 #361

Merged
merged 12 commits into from
May 6, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
chore(combine) combine some RUN commands
  • Loading branch information
hutchic committed Apr 29, 2020
commit f61b66a9e93e348ccf98447e3ef1ebc3d40d76ff
15 changes: 7 additions & 8 deletions alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,13 @@ RUN set -ex; \
tar -C /kong -xzf /tmp/kong.tar.gz && \
mv /kong/usr/local/* /usr/local && \
mv /kong/etc/* /etc && \
rm -rf /kong

RUN apk add --no-cache libgcc openssl pcre perl tzdata libcap zip bash \
&& adduser -S kong \
&& mkdir -p "/usr/local/kong" \
&& chown -R kong:0 /usr/local/kong \
&& chown kong:0 /usr/local/bin/kong \
&& chmod -R g=u /usr/local/kong
rm -rf /kong && \
apk add --no-cache libgcc openssl pcre perl tzdata libcap zip bash && \
adduser -S kong && \
mkdir -p "/usr/local/kong" && \
chown -R kong:0 /usr/local/kong && \
chown kong:0 /usr/local/bin/kong && \
chmod -R g=u /usr/local/kong

COPY docker-entrypoint.sh /docker-entrypoint.sh

Expand Down
5 changes: 2 additions & 3 deletions centos/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,8 @@ RUN set -ex; \
fi; \
yum install -y -q unzip shadow-utils \
&& yum clean all -q \
&& rm -fr /var/cache/yum/* /tmp/yum_save*.yumtx /root/.pki

RUN useradd kong \
&& rm -fr /var/cache/yum/* /tmp/yum_save*.yumtx /root/.pki \
&& useradd kong \
&& mkdir -p "/usr/local/kong" \
&& yum install -y /tmp/kong.rpm \
&& yum clean all \
Expand Down
5 changes: 2 additions & 3 deletions rhel/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,8 @@ RUN set -ex; \
fi; \
yum install -y -q unzip shadow-utils \
&& yum clean all -q \
&& rm -fr /var/cache/yum/* /tmp/yum_save*.yumtx /root/.pki

RUN useradd kong \
&& rm -fr /var/cache/yum/* /tmp/yum_save*.yumtx /root/.pki \
&& useradd kong \
&& mkdir -p "/usr/local/kong" \
&& yum install -y /tmp/kong.rpm \
&& yum clean all \
Expand Down
5 changes: 2 additions & 3 deletions ubuntu/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,8 @@ RUN set -ex; \
&& apt-get install -y --no-install-recommends perl unzip \
&& rm -rf /var/lib/apt/lists/* \
&& dpkg -i /tmp/kong.deb \
&& rm -rf /tmp/kong.deb

RUN useradd -ms /bin/bash kong \
&& rm -rf /tmp/kong.deb \
&& useradd -ms /bin/bash kong \
&& mkdir -p "/usr/local/kong" \
&& chown -R kong:0 /usr/local/kong \
&& chown kong:0 /usr/local/bin/kong \
Expand Down