Skip to content

Commit

Permalink
add http-fastcgi-temp-path parameter and 1 VOLUME
Browse files Browse the repository at this point in the history
  • Loading branch information
josephpage committed Aug 5, 2015
1 parent bbe22b7 commit ff4766c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ RUN echo "==> Installing dependencies..." \
--prefix=$OPENRESTY_PREFIX \
--http-client-body-temp-path=$VAR_PREFIX/client_body_temp \
--http-proxy-temp-path=$VAR_PREFIX/proxy_temp \
--http-fastcgi-temp-path=$VAR_PREFIX/fastcgi_temp \
--http-log-path=$VAR_PREFIX/access.log \
--error-log-path=$VAR_PREFIX/error.log \
--pid-path=$VAR_PREFIX/nginx.pid \
Expand All @@ -48,13 +49,16 @@ RUN echo "==> Installing dependencies..." \
&& ln -sf $OPENRESTY_PREFIX/bin/resty /usr/local/bin/resty \
&& ln -sf $OPENRESTY_PREFIX/luajit/bin/luajit-* $OPENRESTY_PREFIX/luajit/bin/lua \
&& ln -sf $OPENRESTY_PREFIX/luajit/bin/luajit-* /usr/local/bin/lua \
&& echo "==> Cleaning..." \
&& apk del \
make gcc musl-dev pcre-dev openssl-dev zlib-dev ncurses-dev readline-dev curl perl \
&& apk add \
libpcrecpp libpcre16 libpcre32 openssl libssl1.0 pcre libgcc libstdc++ \
&& rm -rf /var/cache/apk/* \
&& rm -rf /root/ngx_openresty

VOLUME /var/nginx

WORKDIR $NGINX_PREFIX/

ONBUILD RUN rm -rf conf/* html/*
Expand Down

0 comments on commit ff4766c

Please sign in to comment.