Skip to content

Commit

Permalink
feat(*) alpine support
Browse files Browse the repository at this point in the history
  • Loading branch information
subnetmarco committed Aug 17, 2017
1 parent 1995301 commit 6098a40
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions Dockerfile
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"]
Expand Down

0 comments on commit 6098a40

Please sign in to comment.