mirror of
https://github.com/invoiceninja/dockerfiles.git
synced 2026-01-08 07:27:25 +01:00
Compare commits
36 Commits
5.0.23-p2
...
5.0.30-p14
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1596478724 | ||
|
|
a240fd2977 | ||
|
|
7c1ef67755 | ||
|
|
bfc1d7add8 | ||
|
|
111f5a7e4e | ||
|
|
330f3e1c0e | ||
|
|
baeb925d87 | ||
|
|
079a05bbd8 | ||
|
|
8e995aa2ef | ||
|
|
dee4d0f27d | ||
|
|
60e5a68e01 | ||
|
|
67ad43d05d | ||
|
|
35beefba60 | ||
|
|
d1309cc86f | ||
|
|
a1d9220506 | ||
|
|
386359a346 | ||
|
|
b503418904 | ||
|
|
450eaf16e3 | ||
|
|
1f65c9f7f6 | ||
|
|
c02bf7bd03 | ||
|
|
4111fa87c9 | ||
|
|
0d5a7671ba | ||
|
|
7ea6e7c48e | ||
|
|
27e1788e91 | ||
|
|
d24a69ec39 | ||
|
|
8384175465 | ||
|
|
f8c442ec5f | ||
|
|
05f89f064e | ||
|
|
902745ec5a | ||
|
|
4efba38ce5 | ||
|
|
a184cf2844 | ||
|
|
94e8be57e5 | ||
|
|
385a434833 | ||
|
|
9ddeda4c32 | ||
|
|
805e526fc9 | ||
|
|
cdc35aff2f |
@@ -1,4 +1,4 @@
|
|||||||
ARG PHP_VERSION=7.3
|
ARG PHP_VERSION=7.4
|
||||||
|
|
||||||
# Get Invoice Ninja
|
# Get Invoice Ninja
|
||||||
FROM alpine:latest as base
|
FROM alpine:latest as base
|
||||||
@@ -8,6 +8,7 @@ RUN set -eux; \
|
|||||||
apk add --no-cache \
|
apk add --no-cache \
|
||||||
curl \
|
curl \
|
||||||
mysql-client \
|
mysql-client \
|
||||||
|
git \
|
||||||
libarchive-tools; \
|
libarchive-tools; \
|
||||||
mkdir -p /var/www/app
|
mkdir -p /var/www/app
|
||||||
|
|
||||||
@@ -42,23 +43,26 @@ COPY --from=frontend /var/www/app /var/www/app
|
|||||||
COPY entrypoint.sh /usr/local/bin/docker-entrypoint
|
COPY entrypoint.sh /usr/local/bin/docker-entrypoint
|
||||||
RUN chmod +x /usr/local/bin/docker-entrypoint
|
RUN chmod +x /usr/local/bin/docker-entrypoint
|
||||||
|
|
||||||
|
RUN apt-get update && apt-get install -y libonig-dev
|
||||||
|
|
||||||
RUN set -eux; \
|
RUN set -eux; \
|
||||||
apk add --no-cache \
|
apk add --no-cache \
|
||||||
nodejs \
|
nodejs \
|
||||||
npm \
|
npm \
|
||||||
|
mysql-client \
|
||||||
freetype-dev \
|
freetype-dev \
|
||||||
gmp-dev \
|
gmp-dev \
|
||||||
libjpeg-turbo-dev \
|
libjpeg-turbo-dev \
|
||||||
libpng-dev \
|
libpng-dev \
|
||||||
libzip-dev; \
|
libzip-dev \
|
||||||
docker-php-ext-configure zip --with-libzip; \
|
zip; \
|
||||||
docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ --with-png-dir=/usr/include/; \
|
docker-php-ext-configure gd --with-freetype --with-jpeg; \
|
||||||
docker-php-ext-install -j$(nproc) \
|
docker-php-ext-install -j$(nproc) \
|
||||||
bcmath \
|
bcmath \
|
||||||
exif \
|
exif \
|
||||||
gd \
|
gd \
|
||||||
gmp \
|
gmp \
|
||||||
mbstring \
|
# mbstring \
|
||||||
mysqli \
|
mysqli \
|
||||||
opcache \
|
opcache \
|
||||||
pdo \
|
pdo \
|
||||||
@@ -111,11 +115,13 @@ RUN chown $INVOICENINJA_USER /etc/periodic/1min/invoiceninja_cronjob && \
|
|||||||
|
|
||||||
USER $INVOICENINJA_USER
|
USER $INVOICENINJA_USER
|
||||||
|
|
||||||
RUN composer install --no-dev --no-suggest --no-progress --quiet
|
RUN /usr/local/bin/composer install --no-dev --no-suggest --no-progress --quiet
|
||||||
|
|
||||||
# Override the environment settings from projects .env file
|
# Override the environment settings from projects .env file
|
||||||
ENV APP_ENV production
|
ENV APP_ENV production
|
||||||
ENV LOG errorlog
|
ENV LOG errorlog
|
||||||
|
|
||||||
|
RUN php artisan storage:link
|
||||||
|
|
||||||
ENTRYPOINT ["docker-entrypoint"]
|
ENTRYPOINT ["docker-entrypoint"]
|
||||||
CMD ["php-fpm"]
|
CMD ["php-fpm"]
|
||||||
|
|||||||
@@ -37,6 +37,9 @@ services:
|
|||||||
- APP_KEY=<INSERT THE GENERATED APPLICATION KEY HERE>
|
- APP_KEY=<INSERT THE GENERATED APPLICATION KEY HERE>
|
||||||
- MULTI_DB_ENABLED=false
|
- MULTI_DB_ENABLED=false
|
||||||
- DB_HOST1=db
|
- DB_HOST1=db
|
||||||
|
- DB_USERNAME1=ninja
|
||||||
|
- DB_PASSWORD1=ninja
|
||||||
|
- DB_DATABASE1=ninja
|
||||||
volumes:
|
volumes:
|
||||||
# Configure your mounted directories, make sure the folder 'public' and 'storage'
|
# Configure your mounted directories, make sure the folder 'public' and 'storage'
|
||||||
# exist, before mounting them
|
# exist, before mounting them
|
||||||
@@ -93,4 +96,4 @@ volumes:
|
|||||||
# logo:
|
# logo:
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
invoiceninja:
|
invoiceninja:
|
||||||
|
|||||||
Reference in New Issue
Block a user