fixing some run issues and creating /rompr before volume
This commit is contained in:
@@ -30,9 +30,10 @@ RUN apt-get remove -y --purge ${DEV_PKGS} && \
|
||||
RUN curl -k -L -o rompr.zip https://github.com/fatg3erman/RompR/releases/download/${ROMPR_VERSION}/rompr-${ROMPR_VERSION}.zip
|
||||
RUN mkdir -p /app
|
||||
RUN unzip -d /app rompr.zip && rm rompr.zip
|
||||
RUN mkdir -p /rompr
|
||||
RUN ln -sf /rompr/prefs /app/rompr/prefs
|
||||
RUN ln -sf /rompr/albumart /app/rompr/albumart
|
||||
RUN chown -R www-data:www-data /app/rompr
|
||||
RUN chown -R www-data:www-data /app/rompr /rompr
|
||||
COPY nginx_default /etc/nginx/sites-available/default
|
||||
RUN mkdir -p /run/php/
|
||||
#Environment variables to configure php
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
#!/bin/sh
|
||||
rm /var/run/nginx.pid
|
||||
rm -f /var/run/nginx.pid
|
||||
mkdir -p /var/log/nginx
|
||||
set -e
|
||||
|
||||
/etc/init.d/php7.3-fpm restart
|
||||
exec /usr/sbin/nginx -g 'daemon off;'
|
||||
exec /usr/sbin/nginx -g 'daemon off; access_log off;'
|
||||
|
||||
Reference in New Issue
Block a user