Skip to content

Commit

Permalink
Added: exif support
Browse files Browse the repository at this point in the history
  • Loading branch information
james2doyle committed Apr 9, 2024
1 parent f83f869 commit 4326e14
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ RUN apt-get update && apt-get install -y --no-install-recommends $BUILD_DEPS $LI
&& cd /tmp && curl -Ls https://github.com/unicode-org/icu/releases/download/release-$(echo $ICU_RELEASE | tr '.' '-')/icu4c-$(echo $ICU_RELEASE | tr '.' '_')-src.tgz > icu4c-src.tgz \
&& cd /tmp && tar xzf icu4c-src.tgz && cd /tmp/icu/source && echo "#define FALSE 0" >> config.h && echo "#define TRUE 1" >> config.h && ./runConfigureICU Linux && make && make install && rm -rf /tmp/icu /tmp/icu4c-src.tgz \
&& docker-php-ext-configure intl && docker-php-ext-install intl \
&& docker-php-ext-configure intl && docker-php-ext-install gmp \
&& docker-php-ext-configure gmp && docker-php-ext-install gmp \
&& docker-php-ext-configure exif && docker-php-ext-install exif \
&& docker-php-ext-configure opcache && docker-php-ext-install opcache \
&& chmod +x /usr/local/bin/install-php-extensions && install-php-extensions gd bcmath \
&& echo "memory_limit = 1G" > $PHP_INI_DIR/conf.d/memory-limit.ini \
Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,20 @@ Docker image for PHP under build environments
- `gd`
- `bcmath`
- `gmp`
- `exif`
- increased `memory_limit`
- enabled `jit`

### Building

```sh
docker build -t php81 .
docker build -t php82 .
```

### Running Locally

```sh
docker run -it --volume="$PWD:/app" --workdir="/app" --entrypoint=/bin/bash php81
docker run -it --volume="$PWD:/app" --workdir="/app" --entrypoint=/bin/bash php82
```

### Running Remotely
Expand Down

0 comments on commit 4326e14

Please sign in to comment.