Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
Remove missed BUILD_NUMBER vars
  • Loading branch information
bbucher-sigsci authored Apr 17, 2020
1 parent 6afa6fa commit 10a8f82
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ RUN apk update && apk add --no-cache gnupg wget --virtual ./build_deps \
# Get the correct sigsci nginx native module based on alpine version, nginx version, and module version
&& wget -O /tmp/nginx-module-sigsci-nxo_${NGXVERSION}-alpine${ALPINE_RELEASE}.tar.gz https://dl.signalsciences.net/sigsci-module-nginx-native/${MODULE_VERSION}/alpine/alpine${ALPINE_RELEASE}/nginx-module-sigsci-nxo_${NGXVERSION}-alpine${ALPINE_RELEASE}.tar.gz \
# Manually install the sigsci native nginx module and update nginx.conf
&& tar xvfz /tmp/nginx-module-sigsci-nxo_${NGXVERSION}-${BUILD_NUMBER}-alpine${ALPINE_RELEASE}.tar.gz -C /tmp || : \
&& tar xvfz /tmp/nginx-module-sigsci-nxo_${NGXVERSION}-alpine${ALPINE_RELEASE}.tar.gz -C /tmp || : \
&& mkdir -p /usr/lib/nginx/modules \
&& mv /tmp/ngx_http_sigsci_nxo_module-${NGXVERSION}.so /usr/lib/nginx/modules/ngx_http_sigsci_module.so \
&& ln -s /usr/lib/nginx/modules/ngx_http_sigsci_module.so /etc/nginx/modules/ngx_http_sigsci_module.so \
&& sed -i 's@^pid.*@&\nload_module /usr/lib/nginx/modules/ngx_http_sigsci_module.so;\n@' /etc/nginx/nginx.conf \
# cleanup
&& rm /tmp/nginx-module-sigsci-nxo_${NGXVERSION}-${BUILD_NUMBER}-alpine${ALPINE_RELEASE}.tar.gz /tmp/*.so \
&& rm /tmp/nginx-module-sigsci-nxo_${NGXVERSION}-alpine${ALPINE_RELEASE}.tar.gz /tmp/*.so \
&& apk del --no-cache ./build_deps
# Change back to the www-data user for executing nginx at runtime
USER www-data

0 comments on commit 10a8f82

Please sign in to comment.