mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 01:25:55 +02:00
Configure dockers GD with support with multiple file formats.
Should fix issue #122 and #115
This commit is contained in:
parent
8f2b145b21
commit
d3d92d6013
2 changed files with 10 additions and 5 deletions
13
Dockerfile
13
Dockerfile
|
@ -2,12 +2,17 @@ FROM php:8.1-apache
|
||||||
|
|
||||||
# Install needed dependencies for PHP build
|
# Install needed dependencies for PHP build
|
||||||
RUN apt-get update && apt-get install -y pkg-config curl libcurl4-openssl-dev libicu-dev \
|
RUN apt-get update && apt-get install -y pkg-config curl libcurl4-openssl-dev libicu-dev \
|
||||||
libpng-dev libjpeg-dev libfreetype6-dev gnupg zip libzip-dev libonig-dev libxslt-dev vim \
|
libpng-dev libjpeg-dev libfreetype6-dev gnupg zip libzip-dev libjpeg62-turbo-dev libonig-dev libxslt-dev libwebp-dev vim \
|
||||||
&& apt-get -y autoremove && apt-get clean autoclean && rm -rf /var/lib/apt/lists/*
|
&& apt-get -y autoremove && apt-get clean autoclean && rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
# Install GD (we have to configure GD first before installing it, see issue #115)
|
# Install GD with support for multiple formats
|
||||||
RUN docker-php-ext-configure gd --with-freetype --with-jpeg && docker-php-ext-install gd
|
RUN docker-php-ext-configure gd \
|
||||||
# Install other needed PHP extensions
|
--with-webp \
|
||||||
|
--with-jpeg \
|
||||||
|
--with-freetype \
|
||||||
|
&& docker-php-ext-install gd
|
||||||
|
|
||||||
|
# Install other needed PHP extensions
|
||||||
RUN docker-php-ext-install pdo_mysql curl intl mbstring bcmath gd zip xml xsl
|
RUN docker-php-ext-install pdo_mysql curl intl mbstring bcmath gd zip xml xsl
|
||||||
|
|
||||||
# Install yarn
|
# Install yarn
|
||||||
|
|
|
@ -11,7 +11,7 @@ services:
|
||||||
- ./public_media:/var/www/html/public/media
|
- ./public_media:/var/www/html/public/media
|
||||||
- ./db:/var/www/html/var/db
|
- ./db:/var/www/html/var/db
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
image: jbtronics/part-db1:master
|
image: jbtronics/part-db1:latest
|
||||||
environment:
|
environment:
|
||||||
# Put SQLite database in our mapped folder. You can configure some other kind of database here too.
|
# Put SQLite database in our mapped folder. You can configure some other kind of database here too.
|
||||||
- DATABASE_URL=sqlite:///%kernel.project_dir%/var/db/app.db
|
- DATABASE_URL=sqlite:///%kernel.project_dir%/var/db/app.db
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue