Compare commits

..

7 Commits

Author SHA1 Message Date
David Bomba
ff3b7263f5 Merge pull request #825 from turbo124/master
Force cache:clear on first boot
2025-10-28 06:28:11 +11:00
David Bomba
ba896fcc03 Force cache:clear on first boot 2025-10-28 06:26:49 +11:00
David Bomba
b53ed7c914 Merge pull request #749 from turbo124/master
Add deprecation notice for master branch
2025-04-25 08:23:55 +10:00
David Bomba
e3fd4afb7d Add deprecation notice for master branch 2025-04-25 08:23:28 +10:00
David Bomba
afceccfaf6 Merge pull request #734 from benbrummer/master
github latest url, tar.gz, alpine 3.20
2025-03-19 10:05:22 +11:00
Benjamin Brummer
320cdc961d github latest url, tar.gz, alpine 3.20 2025-03-18 07:25:21 +00:00
David Bomba
7e466b38a3 Merge pull request #715 from invoiceninja/revert-689-master
Revert "Align alpine to debian and octane for maintenance"
2025-01-26 09:47:59 +11:00
3 changed files with 15 additions and 11 deletions

View File

@@ -1,10 +1,15 @@
![Docker images](https://github.com/invoiceninja/dockerfiles/workflows/Docker%20images/badge.svg)
[![Docker image, latest](https://img.shields.io/docker/image-size/invoiceninja/invoiceninja/latest?label=latest)](https://hub.docker.com/r/invoiceninja/invoiceninja)
[![Docker image, alpine](https://img.shields.io/docker/image-size/invoiceninja/invoiceninja/alpine?label=alpine)](https://hub.docker.com/r/invoiceninja/invoiceninja)
[![Artifact HUB](https://img.shields.io/endpoint?url=https://artifacthub.io/badge/repository/invoiceninja)](https://artifacthub.io/packages/search?repo=invoiceninja)
[![Publish Image](https://github.com/invoiceninja/dockerfiles/actions/workflows/publish-image.yaml/badge.svg)](https://github.com/invoiceninja/dockerfiles/actions/workflows/publish-image.yaml)
[![Cache v5 Image](https://github.com/invoiceninja/dockerfiles/actions/workflows/build-image-v5.yaml/badge.svg)](https://github.com/invoiceninja/dockerfiles/actions/workflows/build-image-v5.yaml)
# Deprecation Notice
The master branch is not longer receiving active updates. We will continue to tag new releases whilst compatibility with underlying packages remains, however we will not be updating this image going forward.
Instead, please use the debian branch [here](https://github.com/invoiceninja/dockerfiles/tree/debian) this image is a completely fresh start based on the debian image and allows improved package support.
# Docker for [Invoice Ninja](https://www.invoiceninja.com/)
:crown: **Features**

View File

@@ -1,30 +1,28 @@
ARG ALPINE_VERSION=3.20
ARG PHP_VERSION=8.2
ARG BAK_STORAGE_PATH=/var/www/app/docker-backup-storage/
ARG BAK_PUBLIC_PATH=/var/www/app/docker-backup-public/
# Get Invoice Ninja and install nodejs packages
FROM --platform=$BUILDPLATFORM node:lts-alpine as nodebuild
FROM --platform=$BUILDPLATFORM node:lts-alpine${ALPINE_VERSION} as nodebuild
# Download Invoice Ninja
ARG INVOICENINJA_VERSION
ARG REPOSITORY=invoiceninja/invoiceninja
ARG FILENAME=invoiceninja.tar
ARG FILENAME=invoiceninja.tar.gz
RUN set -eux; apk add curl unzip grep
RUN 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 -LJO "$DOWNLOAD_URL" && \
mv invoiceninja.tar /tmp/ninja.tar
# Extract Invoice Ninja
RUN mkdir -p /var/www/app \
&& tar -xvf /tmp/ninja.tar -C /var/www/app/ \
&& mkdir -p /var/www/app/public/logo /var/www/app/storage
RUN mkdir -p /var/www/app
RUN curl -sL "https://github.com/invoiceninja/invoiceninja/releases/latest/download/invoiceninja.tar.gz" | \
tar -xz -C /var/www/app/
RUN mkdir -p /var/www/app/public/logo /var/www/app/storage
WORKDIR /var/www/app
# Prepare php image
FROM php:${PHP_VERSION}-fpm-alpine as phpbuild
FROM php:${PHP_VERSION}-fpm-alpine${ALPINE_VERSION} as phpbuild
LABEL maintainer="David Bomba <turbo124@gmail.com>"

View File

@@ -1,6 +1,7 @@
#!/bin/sh
php artisan db:seed --force
php artisan cache:clear
# Build up array of arguments...
if [[ ! -z "${IN_USER_EMAIL}" ]]; then