-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
26 lines (18 loc) · 715 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
# Copyright (c) 2014 Internet Services Australia 3 Pty Limited (http://www.zanui.com.au)
# MIT License, see LICENSE.md for details.
FROM phusion/baseimage:0.9.15
MAINTAINER Zanui Engineering Team <[email protected]>
ENV DEBIAN_FRONTEND noninteractive
ENV HOME /root
# Install Ubuntu packages.
RUN apt-get update -y \
&& add-apt-repository -y ppa:nginx/stable \
&& apt-get -y install nginx
ADD templates/runit_nginx /etc/service/nginx/run
RUN chmod +x /etc/service/nginx/run
# Clean up any files used by apt-get
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
# Tell Docker that we are exposing the HTTP port
EXPOSE 80
# Use baseimage-docker's init system.
CMD ["/sbin/my_init"]