Skip to content

Commit

Permalink
Merge pull request #584 from turbo124/master
Browse files Browse the repository at this point in the history
Fixes for build
  • Loading branch information
turbo124 authored Jun 9, 2024
2 parents 492d895 + 738546d commit 02eed02
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions alpine/5/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,15 @@ FROM --platform=$BUILDPLATFORM node:lts-alpine as nodebuild

# Download Invoice Ninja
ARG INVOICENINJA_VERSION
ADD https://github.com/invoiceninja/invoiceninja/releases/download/v$INVOICENINJA_VERSION/react-invoiceninja.tar /tmp/ninja.tar
ARG REPOSITORY=invoiceninja/invoiceninja
ARG FILENAME=react-invoiceninja.tar

RUN set -eux; apk add curl unzip
RUN set -eux; apk add curl unzip grep

# Fetch the latest release information
RUN release_info=$(curl -s "https://api.github.com/repos/${REPOSITORY}/releases/latest") && \
download_url=$(echo "$release_info" | grep -o '"browser_download_url": "[^"]*'${FILENAME}'"' | cut -d '"' -f 4) && \
curl -LJO "$download_url" -o "/tmp/${FILENAME}"

# Extract Invoice Ninja
RUN mkdir -p /var/www/app \
Expand All @@ -34,7 +40,6 @@ RUN mv /usr/local/etc/php/php.ini-production /usr/local/etc/php/php.ini
COPY --from=mlocati/php-extension-installer /usr/bin/install-php-extensions /usr/local/bin/

# Install chromium
# `ttf-dejavu` is Chinese supported fonts
RUN set -eux; \
apk add --no-cache \
font-isas-misc \
Expand Down

0 comments on commit 02eed02

Please sign in to comment.