forked from hipache/hipache
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
40 lines (31 loc) · 1.01 KB
/
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
# This file describes how to build Hipache into a runnable linux container with
# all dependencies installed.
#
# To build:
#
# 1) Install docker (http://docker.io)
# 2) Clone Hipache repo if you haven't already: git clone https://github.com/dotcloud/hipache.git
# 3) Build: cd hipache && docker build .
# 4) Run: docker run -d --name redis redis
# 5) Run: docker run -d --link redis:redis -P <hipache_image_id>
#
# See the documentation for more details about how to operate Hipache.
# Latest Ubuntu LTS
from ubuntu:14.04
# Update
run apt-get -y update
# Install node and npm
run apt-get -y install nodejs npm
# Manually add Hipache folder
run mkdir ./hipache
add . ./hipache
# Then install it
run npm install -g ./hipache --production
# This is provisional, as we don't honor it yet in Hipache
env NODE_ENV production
# Create Hipache log directory
RUN mkdir -p /var/log/hipache
# Expose Hipache
expose 80
# Start supervisor
cmd [ "/usr/local/bin/hipache", "-c", "/usr/local/lib/node_modules/hipache/config/config.json" ]