Skip to content
This repository has been archived by the owner on Nov 9, 2023. It is now read-only.

Commit

Permalink
Merge pull request #3 from SpazioDati/feature/update-to-latest
Browse files Browse the repository at this point in the history
Upgrade Debian and openresty version
  • Loading branch information
mpitt authored Aug 26, 2021
2 parents f5706ae + ba9c721 commit 899bdef
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM debian:jessie
FROM debian:buster-slim

MAINTAINER Davide Setti <[email protected]>

Expand All @@ -15,22 +15,21 @@ RUN apt-get update && apt-get -y install \
libncurses5-dev \
libpcre3-dev \
libssl-dev \
nano \
perl \
wget
zlib1g-dev \
perl

# Compile openresty from source.
RUN \
wget http://openresty.org/download/ngx_openresty-1.9.3.2.tar.gz && \
tar -xzvf ngx_openresty-*.tar.gz && \
rm -f ngx_openresty-*.tar.gz && \
cd ngx_openresty-* && \
./configure --with-pcre-jit --with-ipv6 && \
curl -O https://openresty.org/download/openresty-1.19.9.1.tar.gz && \
tar -xzvf openresty-*.tar.gz && \
rm -f openresty-*.tar.gz && \
cd openresty-* && \
./configure --with-pcre-jit && \
make && \
make install && \
make clean && \
cd .. && \
rm -rf ngx_openresty-*&& \
rm -rf openresty-* && \
ln -s /usr/local/openresty/nginx/sbin/nginx /usr/local/bin/nginx && \
ldconfig

Expand Down

0 comments on commit 899bdef

Please sign in to comment.