Comments (9)
What was your build command?
from nginx.
Need to add this to fix the issue
ARG NGINX_VERSION=1.19
from nginx.
after that facing this issue
- cd /usr/src/nginx
/bin/sh: cd: line 1: can't cd to /usr/src/nginx: No such file or directory
from nginx.
Glad you got it. The docs indicate you need to pass a version.
from nginx.
if i create manually
mkdir /usr/src/nginx
after that ./configure not working what will be the solution for that?
from nginx.
http://nginx.org/en/download.html
I donβt see your version listed.
from nginx.
Currently using this
'FROM alpine:3.10
MAINTAINER Thomas Spicer ([email protected])
ARG NGINX_VERSION=1.19
ENV VAR_PREFIX=/var/run
LOG_PREFIX=/var/log/nginx
TEMP_PREFIX=/tmp
CACHE_PREFIX=/var/cache
CONF_PREFIX=/etc/nginx
CERTS_PREFIX=/etc/pki/tls
RUN set -x
&& CONFIG="
--prefix=/usr/share/nginx/
--sbin-path=/usr/sbin/nginx
--add-module=/tmp/naxsi/naxsi_src
--modules-path=/usr/lib/nginx/modules
--conf-path=${CONF_PREFIX}/nginx.conf
--error-log-path=${LOG_PREFIX}/error.log
--http-log-path=${LOG_PREFIX}/access.log
--pid-path=${VAR_PREFIX}/nginx.pid
--lock-path=${VAR_PREFIX}/nginx.lock
--http-client-body-temp-path=${TEMP_PREFIX}/client_temp
--http-proxy-temp-path=${TEMP_PREFIX}/proxy_temp
--http-fastcgi-temp-path=${TEMP_PREFIX}/fastcgi_temp
--http-uwsgi-temp-path=${TEMP_PREFIX}/uwsgi_temp
--http-scgi-temp-path=${TEMP_PREFIX}/scgi_temp
--user=www-data
--group=www-data
--with-http_ssl_module
--with-pcre-jit
--with-http_realip_module
--with-http_addition_module
--with-http_sub_module
--with-http_dav_module
--with-http_flv_module
--with-http_mp4_module
--with-http_gunzip_module
--with-http_gzip_static_module
--with-http_random_index_module
--with-http_secure_link_module
--with-http_stub_status_module
--with-http_auth_request_module
--with-http_xslt_module=dynamic
--with-http_image_filter_module=dynamic
--with-http_geoip_module=dynamic
--with-threads
--with-stream
--with-stream_ssl_module
--with-stream_ssl_preread_module
--with-stream_realip_module
--with-stream_geoip_module=dynamic
--with-http_slice_module
--with-mail
--with-mail_ssl_module
--with-compat
--with-file-aio
--with-http_v2_module
--add-module=/tmp/ngx_cache_purge-2.3
--add-module=/tmp/ngx_http_redis-0.3.9
--add-module=/tmp/redis2-nginx-module-0.15
--add-module=/tmp/srcache-nginx-module-0.31
--add-module=/tmp/echo-nginx-module
--add-module=/tmp/ngx_devel_kit-0.3.1
--add-module=/tmp/set-misc-nginx-module-0.32
--add-module=/tmp/ngx_brotli
--with-cc-opt=-Wno-error
"
&& addgroup -g 82 -S www-data
&& adduser -u 82 -D -S -h /var/cache/nginx -s /sbin/nologin -G www-data www-data
&& apk add --no-cache --virtual .build-deps
build-base
ca-certificates
automake
autoconf
git
libtool
binutils
gnupg
cmake
go
gcc
build-base
libc-dev
make
wget
gzip
openssl-dev
musl-dev
pcre-dev
zlib-dev
geoip-dev
git
linux-headers
gnupg
libxslt-dev
gd-dev
unzip
&& apk add --no-cache --update
curl
monit
wget
bash
bind-tools
rsync
geoip
openssl
tini
tar
&& cd /tmp
&& git clone https://github.com/google/ngx_brotli --depth=1
&& cd ngx_brotli && git submodule update --init
&& export NGX_BROTLI_STATIC_MODULE_ONLY=1
&& cd /tmp
&& git clone https://github.com/nbs-system/naxsi.git
&& echo 'adding /usr/local/share/GeoIP/GeoIP.dat database'
&& wget -N https://raw.githubusercontent.com/openbridge/nginx/master/geoip/GeoLiteCity.dat.gz
&& wget -N https://raw.githubusercontent.com/openbridge/nginx/master/geoip/GeoIP.dat.gz
&& gzip -d GeoIP.dat.gz
&& gzip -d GeoLiteCity.dat.gz
&& mkdir /usr/local/share/GeoIP/
&& mv GeoIP.dat /usr/local/share/GeoIP/
&& mv GeoLiteCity.dat /usr/local/share/GeoIP/
&& chown -R www-data:www-data /usr/local/share/GeoIP/
&& curl -fSL http://nginx.org/download/nginx-1.9.9.tar.gz -o nginx.tar.gz
&& mkdir -p /usr/src
&& tar -zxC /usr/src -f nginx.tar.gz
&& rm nginx.tar.gz
&& cd /tmp
&& git clone https://github.com/openresty/echo-nginx-module.git
&& wget https://github.com/simpl/ngx_devel_kit/archive/v0.3.1.zip -O dev.zip
&& wget https://github.com/openresty/set-misc-nginx-module/archive/v0.32.zip -O setmisc.zip
&& wget https://people.freebsd.org/~osa/ngx_http_redis-0.3.9.tar.gz
&& wget https://github.com/openresty/redis2-nginx-module/archive/v0.15.zip -O redis.zip
&& wget https://github.com/openresty/srcache-nginx-module/archive/v0.31.zip -O cache.zip
&& wget https://github.com/FRiCKLE/ngx_cache_purge/archive/2.3.zip -O purge.zip
&& tar -zx -f ngx_http_redis-0.3.9.tar.gz
&& unzip dev.zip
&& unzip setmisc.zip
&& unzip redis.zip
&& unzip cache.zip
&& unzip purge.zip
&& cd /usr/src/nginx
&& ./configure $CONFIG --with-debug
&& make -j$(getconf _NPROCESSORS_ONLN)
&& mv objs/nginx objs/nginx-debug
&& mv objs/ngx_http_xslt_filter_module.so objs/ngx_http_xslt_filter_module-debug.so
&& mv objs/ngx_http_image_filter_module.so objs/ngx_http_image_filter_module-debug.so
&& mv objs/ngx_stream_geoip_module.so objs/ngx_stream_geoip_module-debug.so
&& ./configure $CONFIG
&& make -j$(getconf _NPROCESSORS_ONLN)
&& make install
&& rm -rf /etc/nginx/html/
&& mkdir /etc/nginx/conf.d/
&& mkdir -p /usr/share/nginx/html/
&& install -m644 html/index.html /usr/share/nginx/html/
&& install -m644 html/50x.html /usr/share/nginx/html/
&& install -m755 objs/nginx-debug /usr/sbin/nginx-debug
&& install -m755 objs/ngx_http_xslt_filter_module-debug.so /usr/lib/nginx/modules/ngx_http_xslt_filter_module-debug.so
&& install -m755 objs/ngx_http_image_filter_module-debug.so /usr/lib/nginx/modules/ngx_http_image_filter_module-debug.so
&& install -m755 objs/ngx_stream_geoip_module-debug.so /usr/lib/nginx/modules/ngx_stream_geoip_module-debug.so
&& ln -s ../../usr/lib/nginx/modules /etc/nginx/modules
&& strip /usr/sbin/nginx*
&& strip /usr/lib/nginx/modules/.so
&& mkdir -p /usr/local/bin/
&& mkdir -p ${CACHE_PREFIX}
&& mkdir -p ${CERTS_PREFIX}
&& cd /etc/pki/tls/
&& nice -n +5 openssl dhparam -out /etc/pki/tls/dhparam.pem.default 2048
&& apk add --no-cache --virtual .gettext gettext
&& mv /usr/bin/envsubst /tmp/
&& runDeps="$(
scanelf --needed --nobanner /usr/sbin/nginx /usr/lib/nginx/modules/.so /tmp/envsubst
| awk '{ gsub(/,/, "\nso:", $2); print "so:" $2 }'
| sort -u
| xargs -r apk info --installed
| sort -u
)"
&& apk add --no-cache --virtual .nginx-rundeps $runDeps
&& apk del .build-deps
&& apk del .gettext
&& cd /tmp/naxsi
&& mv naxsi_config/naxsi_core.rules /etc/nginx/naxsi_core.rules
&& mv /tmp/envsubst /usr/local/bin/
&& rm -rf /tmp/*
&& rm -rf /usr/src/*
&& ln -sf /dev/stdout ${LOG_PREFIX}/access.log
&& ln -sf /dev/stderr ${LOG_PREFIX}/error.log
&& ln -sf /dev/stdout ${LOG_PREFIX}/blocked.log
COPY conf/ /conf
COPY test/ /tmp/test
COPY error/ /tmp/error/
COPY check_wwwdata.sh /usr/bin/check_wwwdata
COPY check_folder.sh /usr/bin/check_folder
COPY check_host.sh /usr/bin/check_host
COPY docker-entrypoint.sh /docker-entrypoint.sh
RUN chmod +x /docker-entrypoint.sh /usr/bin/check_wwwdata /usr/bin/check_folder /usr/bin/check_host
STOPSIGNAL SIGQUIT
ENTRYPOINT ["/docker-entrypoint.sh"]
CMD ["/usr/sbin/nginx", "-g", "daemon off;"]'
from nginx.
Is there a reason for using a version that is 4 years old?
from nginx.
I want to fine tune my php-fpm max_children issues when traffic raise on my website it goes down.
SO i was thinking to use multiple docker to run my website.
from nginx.
Related Issues (20)
- Turning off cache for development HOT 3
- Container fails to start: unknown directive "max_fails=3" HOT 9
- WP configuration HOT 9
- ngx_http_geoip_module.so HOT 10
- 502 Bad Gateway (ob_php-fpm/wordpress) HOT 3
- nginx cache logged users HOT 11
- DockerFile error Step 6/16 : COPY conf/ /conf HOT 1
- "variables_hash_max_size" directive is duplicate HOT 11
- I want to use this dockers for django. HOT 1
- multiple site setting at nginx env HOT 2
- how can I use the docker image of "openbridge/ob_php-fpm" HOT 1
- monit always failed at 8080 port check HOT 3
- Help with a version to use with Prestashop 1.7+ HOT 2
- Nginx Pagespeed module? HOT 1
- Unable to serve static files proxying HTTPS
- Directives from the nocache.map file do not work. HOT 2
- failed to read dockerfile: open Dockerfile: no such file or directory
- ERROR: Couldn't find env file: /Github/ob_nginx/env/html.env
- PHP8 support? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nginx.