updates for container

This commit is contained in:
David Bomba
2024-11-23 16:57:44 +11:00
parent 7498a94bd1
commit 196e66e06d
2 changed files with 4 additions and 4 deletions

4
debian/Dockerfile vendored
View File

@@ -106,7 +106,7 @@ RUN if [ "$(dpkg --print-architecture)" = "amd64" ]; then \
&& make install \ && make install \
&& echo 'extension=saxon.so' > "/usr/local/etc/php/conf.d/app.ini"; \ && echo 'extension=saxon.so' > "/usr/local/etc/php/conf.d/app.ini"; \
fi fi
# Copy scripts # Copy scripts
COPY rootfs / COPY rootfs /
@@ -117,7 +117,7 @@ WORKDIR /var/www/html
RUN set -eux; \ RUN set -eux; \
DOWNLOAD_URL=$(curl -s "https://api.github.com/repos/invoiceninja/invoiceninja/releases/latest" | \ DOWNLOAD_URL=$(curl -s "https://api.github.com/repos/invoiceninja/invoiceninja/releases/latest" | \
grep -o '"browser_download_url": "[^"]*invoiceninja.tar"' | cut -d '"' -f 4) && \ grep -o '"browser_download_url": "[^"]*invoiceninja.tar"' | cut -d '"' -f 4) && \
curl -L "$DOWNLOAD_URL" | tar -xvz -C /var/www/html && \ curl -L "$DOWNLOAD_URL" | tar -xfvz -C /var/www/html --overwrite && \
rm -rf /var/www/html/ui && \ rm -rf /var/www/html/ui && \
chown -R www-data:www-data /var/www/html chown -R www-data:www-data /var/www/html

View File

@@ -8,7 +8,7 @@ x-logging: &default-logging
services: services:
app: app:
image: invoiceninja/invoiceninja-debian:5 image: invoiceninja/invoiceninja-debian:5
restart: unless-stopped restart: unless-stopped
env_file: env_file:
- ./.env - ./.env
@@ -112,4 +112,4 @@ volumes:
redis_data: redis_data:
driver: local driver: local
public_files: public_files:
driver: local driver: local