Dockerfile 730 B

12345678910111213141516171819
  1. FROM docker.dever.cc/os/alpine:latest
  2. MAINTAINER Rabin "https://github.com/shemic"
  3. ENV OR_HOME=/usr/local/openresty
  4. ENV OR_VERSION=1.13.6.1
  5. ENV PATH=$PATH:$OR_HOME/bin:$OR_HOME/nginx/sbin
  6. RUN apk add --no-cache --update curl gcc make perl libpcre32 pcre libgcc libressl-dev openssl musl-dev pcre-dev zlib-dev && \
  7. curl -O https://openresty.org/download/openresty-${OR_VERSION}.tar.gz && \
  8. tar -zxvf openresty-${OR_VERSION}.tar.gz && \
  9. rm -rf openresty-${OR_VERSION}.tar.gz && \
  10. cd openresty-${OR_VERSION} && \
  11. ./configure && \
  12. make && make install && \
  13. mkdir -p /var/log/nginx && \
  14. apk del curl gcc make perl libpcre32 libressl-dev openssl musl-dev pcre-dev
  15. COPY openresty.sh /entrypoint/openresty.sh