Skip to content

Commit

Permalink
Dockerfile: fix corrupted file
Browse files Browse the repository at this point in the history
  • Loading branch information
silv3rr committed Nov 8, 2024
1 parent e7a6269 commit ef0aa51
Showing 1 changed file with 0 additions and 43 deletions.
43 changes: 0 additions & 43 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -79,48 +79,5 @@ RUN test -n "$http_proxy" && { \
echo 'shit:$apr1$8kedvKJ7$PuY2hy.QQh6iLP3Ckwm740' > /etc/nginx/.htpasswd && \
chown 65534:root /etc/nginx/.htpasswd && \
addgroup nobody ping && \
rm -rf /tmp/* /var/tmp/*
http_proxy=${http_proxy}; \
https_proxy=${http_proxy}; \
}; \
test -n "$apk_http" && sed -i 's/https/http/g' /etc/apk/repositories; \
apk add --no-cache \
nginx \
php \
php-fpm \
php-session \
php-ftp \
php-curl \
php-json \
php-ctype \
apache2-utils \
openssl \
bash \
grep \
sed \
gawk \
sudo && \
rm -rf /var/cache/apk/* && \
install -d -m 0755 -o nginx -g nginx /run/nginx && \
install -d -m 0755 -o nginx -g nginx /run/php && \
rm /etc/nginx/http.d/default.conf && \
ln -sf /dev/stdout /var/log/nginx/access.log && \
ln -sf /dev/stderr /var/log/nginx/error.log && \
sed -i 's|listen = 127.0.0.1:9000|listen = /run/php/php-fpm.sock|' /etc/php*/php-fpm.d/www.conf && \
sed -i 's/;listen.\(owner\|group\) = nobody/listen.\1 = nginx/' /etc/php*/php-fpm.d/www.conf && \
# generate self-signed cert
if [ "${WEBUI_CERT:-1}" -eq 1 ]; then \
if [ ! -e /etc/nginx/webui.crt ] && [ ! -e /etc/nginx/webui.key ]; then \
openssl req -x509 -nodes -newkey rsa:2048 -days 3650 \
-config /etc/nginx/webui.cnf \
-keyout /etc/nginx/webui.key \
-out /etc/nginx/webui.crt && \
chmod 600 /etc/nginx/webui.key; \
fi; \
fi && \
chown 0:0 /auth && \
echo 'shit:$apr1$8kedvKJ7$PuY2hy.QQh6iLP3Ckwm740' > /etc/nginx/.htpasswd && \
chown 65534:root /etc/nginx/.htpasswd && \
addgroup nobody ping && \
rm -rf /tmp/* /var/tmp/*
ENTRYPOINT [ "/entrypoint.sh" ]

0 comments on commit ef0aa51

Please sign in to comment.