Skip to content

Commit 43bd49b

Browse files
Add Dockerfile
1 parent 2b56c3b commit 43bd49b

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

Dockerfile

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
FROM php:7.3.19-apache
2+
3+
# environment settings
4+
ARG DEBIAN_FRONTEND="noninteractive"
5+
ENV LANG="C.UTF-8"
6+
7+
8+
#mkdir man fixes jre install issue on php:apache image
9+
RUN \
10+
echo "**** install runtime packages ****" && \
11+
mkdir -p /usr/share/man/man1 && \
12+
apt-get update && \
13+
apt-get install -y \
14+
--no-install-recommends \
15+
libfreetype6-dev \
16+
libjpeg62-turbo-dev \
17+
libpng-dev \
18+
mediainfo && \
19+
docker-php-ext-configure gd --with-freetype-dir=/usr/include/freetype2 --with-png-dir=/usr/include --with-jpeg-dir=/usr/include && \
20+
docker-php-ext-install -j$(nproc) gd && \
21+
echo "**** remove accessibility properties that sometimes cause an error ****" && \
22+
find /etc -name "accessibility.properties" -exec rm -fv '{}' + && \
23+
find /usr -name "accessibility.properties" -exec rm -fv '{}' + && \
24+
echo "**** cleanup ****" && \
25+
rm -rf \
26+
/tmp/* \
27+
/var/lib/apt/lists/* \
28+
/var/tmp/*

0 commit comments

Comments
 (0)