alpine-nginx-php/Dockerfile

33 lines
529 B
Text
Raw Normal View History

2016-05-09 22:57:54 +00:00
FROM quay.io/luzifer/base-alpine:3.3-1.17.2.0
2015-11-08 18:58:38 +00:00
# Install packages
RUN apk-install nginx \
2015-11-08 18:58:38 +00:00
bash \
curl \
git \
php-cli \
php-curl \
php-dom \
php-gd \
php-fpm \
php-json \
php-mcrypt \
php-mysql \
2016-03-17 21:35:13 +00:00
php-mysqli \
2015-11-08 18:58:38 +00:00
php-pdo_mysql \
php-phar \
php-openssl && \
rm -Rf /var/www/*
# Copy configuration files to root
COPY rootfs /
2015-11-08 18:58:38 +00:00
# Fix permissions
RUN chown -Rf nginx:www-data /var/www/
# Set working directory
WORKDIR /var/www
# Expose the ports for nginx
EXPOSE 80 443