Update Dockerfile

This commit is contained in:
Sebastian Hugentobler 2017-06-13 12:35:44 +00:00
parent db83408ae7
commit 41fb08b068

View File

@ -1,9 +1,11 @@
FROM quay.io/thallian/confd-env:latest
ENV OPENRESTY_VERSION 1.11.2.2
RUN addgroup syncer
RUN adduser -h /app -D -G syncer syncer
RUN apk --no-cache add tar redis make git openssl perl gcc musl-dev pcre pcre-dev openssl-dev lua lua-dev unzip zlib zlib-dev curl luarocks libgcc
RUN apk --no-cache add tar redis make git libressl perl gcc musl-dev pcre pcre-dev openssl-dev lua lua-dev unzip zlib zlib-dev curl luarocks libgcc
WORKDIR /app
@ -13,7 +15,7 @@ RUN luarocks-5.1 install redis-lua
RUN luarocks-5.1 install busted
RUN mkdir /app/openresty
RUN wget -qO- https://openresty.org/download/openresty-1.9.15.1.tar.gz | tar -xz -C /app/openresty --strip 1
RUN wget -qO- https://openresty.org/download/openresty-$OPENRESTY_VERSION.tar.gz | tar -xz -C /app/openresty --strip 1
WORKDIR /app/openresty
RUN ./configure --prefix=/opt/openresty && make && make install