mirror of
https://github.com/invoiceninja/dockerfiles.git
synced 2025-12-31 19:47:25 +01:00
Merge pull request #641 from turbo124/debian
Updates for tar extraction
This commit is contained in:
10
debian/Dockerfile
vendored
10
debian/Dockerfile
vendored
@@ -117,8 +117,14 @@ 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 -xzf - -C /var/www/html --overwrite && \
|
echo "Downloading from: $DOWNLOAD_URL" && \
|
||||||
rm -rf /var/www/html/ui && \
|
# Download and save the tar
|
||||||
|
curl -L "$DOWNLOAD_URL" -o /tmp/ninja.tar && \
|
||||||
|
# Try extraction
|
||||||
|
cd /var/www/html && \
|
||||||
|
tar --strip-components=1 -xf /tmp/ninja.tar && \
|
||||||
|
# List what was extracted
|
||||||
|
rm -f /tmp/ninja.tar && \
|
||||||
chown -R www-data:www-data /var/www/html
|
chown -R www-data:www-data /var/www/html
|
||||||
|
|
||||||
# Install dependencies
|
# Install dependencies
|
||||||
|
|||||||
6
debian/docker-compose.yml
vendored
6
debian/docker-compose.yml
vendored
@@ -8,7 +8,7 @@ x-logging: &default-logging
|
|||||||
|
|
||||||
services:
|
services:
|
||||||
app:
|
app:
|
||||||
image: invoiceninja/invoiceninja-debian:5.10.55-d
|
image: invoiceninja/invoiceninja-debian:latest
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
env_file:
|
env_file:
|
||||||
- ./.env
|
- ./.env
|
||||||
@@ -35,7 +35,7 @@ services:
|
|||||||
image: nginx:alpine
|
image: nginx:alpine
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
ports:
|
ports:
|
||||||
- "8013:80"
|
- "80:80"
|
||||||
volumes:
|
volumes:
|
||||||
- ./nginx/conf.d:/etc/nginx/conf.d:ro
|
- ./nginx/conf.d:/etc/nginx/conf.d:ro
|
||||||
- ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro
|
- ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro
|
||||||
@@ -112,4 +112,4 @@ volumes:
|
|||||||
redis_data:
|
redis_data:
|
||||||
driver: local
|
driver: local
|
||||||
public_files:
|
public_files:
|
||||||
driver: local
|
driver: local
|
||||||
Reference in New Issue
Block a user