forked from DevTable/gantryd
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
26 lines (18 loc) · 679 Bytes
/
Dockerfile
File metadata and controls
26 lines (18 loc) · 679 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
FROM ubuntu:14.04
MAINTAINER Allan Costa "allaninocencio@yahoo.com.br"
# Install Docker
RUN apt-get update
RUN apt-get install -y docker.io
RUN ln -sf /usr/bin/docker.io /usr/local/bin/docker
RUN sed -i '$acomplete -F _docker docker' /etc/bash_completion.d/docker.io
# Add source code to container
ADD . /usr/local/src/gantryd/
# Install system dependencies
RUN cat /usr/local/src/gantryd/requirements.system | xargs sudo apt-get install -y
# Install python dependencies
RUN pip install -r /usr/local/src/gantryd/requirements.txt
# Add gantryd dir to path
ENV PATH $PATH:/usr/local/src/gantryd/
# Set working dir
WORKDIR /usr/local/src/gantryd/
CMD ["./gantry_server.py"]