Updates for tar extraction

This commit is contained in:
David Bomba
2024-11-23 18:48:09 +11:00
parent ea8c5fed8e
commit c6648a8511
2 changed files with 4 additions and 4 deletions

2
debian/Dockerfile vendored
View File

@@ -117,7 +117,7 @@ WORKDIR /var/www/html
RUN set -eux; \
DOWNLOAD_URL=$(curl -s "https://api.github.com/repos/invoiceninja/invoiceninja/releases/latest" | \
grep -o '"browser_download_url": "[^"]*invoiceninja.tar"' | cut -d '"' -f 4) && \
curl -L "$DOWNLOAD_URL" | tar -xzf - -C /var/www/html --overwrite && \
curl -L "$DOWNLOAD_URL" | tar --strip-components=1 -xf - -C /var/www/html && \
rm -rf /var/www/html/ui && \
chown -R www-data:www-data /var/www/html

View File

@@ -8,7 +8,7 @@ x-logging: &default-logging
services:
app:
image: invoiceninja/invoiceninja-debian:5.10.55-d
image: invoiceninja/invoiceninja-debian:latest
restart: unless-stopped
env_file:
- ./.env
@@ -35,7 +35,7 @@ services:
image: nginx:alpine
restart: unless-stopped
ports:
- "8013:80"
- "80:80"
volumes:
- ./nginx/conf.d:/etc/nginx/conf.d:ro
- ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro
@@ -112,4 +112,4 @@ volumes:
redis_data:
driver: local
public_files:
driver: local
driver: local