fixing some run issues and creating /rompr before volume

This commit is contained in:
2021-03-19 14:04:32 +01:00
parent 6e58e75668
commit a625c7351e
2 changed files with 5 additions and 3 deletions

View File

@@ -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

View File

@@ -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;'