-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile.php
45 lines (42 loc) · 1.01 KB
/
Dockerfile.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
FROM php:7.3-fpm-stretch
RUN apt-get -y update && apt-get -y install --no-install-recommends \
libcurl4-openssl-dev \
libicu-dev \
libevent-dev \
libjpeg-dev \
libpng-dev \
libpq-dev \
libssl-dev \
libxml2-dev \
libzip-dev
RUN docker-php-ext-install \
mbstring \
tokenizer \
iconv \
opcache \
intl \
sockets \
xmlwriter \
phar \
dom \
gd \
ctype \
zip \
posix \
json \
fileinfo \
gettext \
curl \
pgsql && \
pecl install event && \
docker-php-ext-enable event
ENV PGHOST=127.0.0.1
ENV PGPORT=5432
ENV PGDATABASE=scenemodels
ENV PGUSER=flightgear
ENV PGPASSWORD=secret
COPY ./scenemodels /scenemodels
RUN chown -R root.root /scenemodels
RUN find /scenemodels -type d -not -perm 755 -exec chmod 755 {} \;
RUN find /scenemodels -type f -not -perm 644 -exec chmod 644 {} \;
VOLUME /scenemodels