mirror of
https://github.com/invoiceninja/dockerfiles.git
synced 2025-12-31 19:47:25 +01:00
updates for container
This commit is contained in:
4
debian/Dockerfile
vendored
4
debian/Dockerfile
vendored
@@ -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
|
||||||
|
|
||||||
|
|||||||
4
debian/docker-compose.yml
vendored
4
debian/docker-compose.yml
vendored
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user