-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (24 loc) · 760 Bytes
/
Dockerfile
File metadata and controls
28 lines (24 loc) · 760 Bytes
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
FROM node:0.12.7-slim
RUN apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
ca-certificates \
curl \
git \
nginx \
php-apc \
php5-curl \
php5-fpm \
php5-gd \
php5-memcached \
php5-mcrypt \
php5-mysql \
unzip \
&& apt-get purge -y --auto-remove \
&& apt-get clean autoclean \
&& rm -rf /var/lib/{apt,dpkg,cache,log}/ /var/lib/apt/lists/* /tmp/* /var/tmp/* \
RUN rm -f /etc/nginx/conf.d/default.conf \
&& rm -f /etc/nginx/sites-enabled/default \
&& ln -sf /dev/stdout /var/log/nginx/access.log \
&& ln -sf /dev/stderr /var/log/nginx/error.log
WORKDIR /usr/src/app
CMD nginx && php-fpm -F