-
Notifications
You must be signed in to change notification settings - Fork 836
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1995301
commit 6098a40
Showing
1 changed file
with
9 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,16 @@ | ||
FROM centos:7 | ||
FROM alpine | ||
MAINTAINER Marco Palladino, [email protected] | ||
|
||
ENV KONG_VERSION 0.11.0 | ||
|
||
RUN yum install -y wget https://bintray.com/kong/kong-community-edition-rpm/download_file?file_path=dists%2Fkong-community-edition-$KONG_VERSION.el7.noarch.rpm && \ | ||
yum clean all | ||
RUN apk update \ | ||
&& apk add --virtual .build-deps wget tar ca-certificates \ | ||
&& apk add libgcc openssl pcre perl \ | ||
&& wget "https://bintray.com/kong/kong-community-edition-alpine-tar/download_file?file_path=kong-community-edition-$KONG_VERSION.apk.tar.gz" -O - | tar xz -C /tmp \ | ||
&& cp -R /tmp/usr / \ | ||
&& rm -rf /tmp/usr \ | ||
&& apk del .build-deps \ | ||
&& rm -rf /var/cache/apk/* | ||
|
||
COPY docker-entrypoint.sh /docker-entrypoint.sh | ||
ENTRYPOINT ["/docker-entrypoint.sh"] | ||
|