-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
33 lines (26 loc) · 1.29 KB
/
Dockerfile
File metadata and controls
33 lines (26 loc) · 1.29 KB
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
FROM tenzer/fpm:no-entrypoint
MAINTAINER Szymon Banaś <szymon.banas@inonecar.com>
# Environment
ENV TZ="Europe/Warsaw"
ENV PHP_VERSION="php7.1"
ENV DEBIAN_FRONTEND="noninteractive"
ENV LC_ALL="C.UTF-8"
# Install tools
RUN apt-get -y update
RUN apt-get install -y --no-install-recommends apt-utils apt-transport-https lsb-release ca-certificates wget ssh git jq
RUN wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg \
&& echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list \
&& apt-get -y update
# Install PIP, PHP, and supplimentary programs.
RUN apt-get install -y ${PHP_VERSION} ${PHP_VERSION}-dev ${PHP_VERSION}-bcmath ${PHP_VERSION}-bz2 \
${PHP_VERSION}-cli ${PHP_VERSION}-curl ${PHP_VERSION}-intl ${PHP_VERSION}-mbstring \
${PHP_VERSION}-opcache ${PHP_VERSION}-soap ${PHP_VERSION}-sqlite3 ${PHP_VERSION}-xml ${PHP_VERSION}-xsl \
${PHP_VERSION}-zip ${PHP_VERSION}-mysql ${PHP_VERSION}-pgsql ${PHP_VERSION}-mcrypt ${PHP_VERSION}-zip \
php-amqp php-redis
# Upgrade all
RUN apt-get -y upgrade
# Install composer
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
# Entrypoint
CMD [ "fpm", "--help" ]
# docker run -v ~/.ssh/id_rsa:/root/.ssh/id_rsa image command