-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
40 lines (33 loc) · 854 Bytes
/
Dockerfile
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
FROM sillelien/base-alpine:0.10
MAINTAINER Michael Dimmock <https://github.com/michaeldim>
# Install packages
RUN echo "@testing http://nl.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories && \
apk-install nginx \
bash \
curl \
git \
shadow@testing \
php-cli \
php-curl \
php-dom \
php-gd \
php-fpm \
php-json \
php-mcrypt \
php-mysql \
php-pdo_mysql \
php-phar \
phpredis@testing \
php-openssl
# Install Composer
RUN curl -sS https://getcomposer.org/installer | php && \
mv composer.phar /usr/local/bin/composer && \
ln -s ~/.composer/vendor/bin/* /usr/local/bin/
# Clear contents of existing www directory
RUN rm -Rf /var/www/*
# Copy configuration files to root
COPY rootfs /
# Set working directory
WORKDIR /var/www
# Expose the ports for nginx
EXPOSE 80