forked from dockerfile/nginx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
35 lines (27 loc) · 806 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
#
# Nginx Dockerfile for armhf (ARMv7+) devices
#
# Based on https://github.com/dockerfile/nginx
#
# Pull base image.
FROM mazzolino/armhf-ubuntu:14.04
MAINTAINER Melchior Wom Füzesi <[email protected]>
# Install dependencies
RUN apt-get update
RUN apt-get install -y software-properties-common
# Install Nginx.
RUN \
add-apt-repository -y ppa:nginx/stable && \
apt-get install -y nginx && \
rm -rf /var/lib/apt/lists/* && \
echo "\ndaemon off;" >> /etc/nginx/nginx.conf && \
chown -R www-data:www-data /var/lib/nginx
# Define mountable directories.
VOLUME ["/etc/nginx/sites-enabled", "/etc/nginx/certs", "/etc/nginx/conf.d", "/var/log/nginx", "/var/www/html"]
# Define working directory.
WORKDIR /etc/nginx
# Define default command.
CMD ["nginx"]
# Expose ports.
EXPOSE 80
EXPOSE 443