-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathDockerfile
More file actions
23 lines (20 loc) · 740 Bytes
/
Dockerfile
File metadata and controls
23 lines (20 loc) · 740 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Dockerfile for Wiremaps.
FROM python:2.7
# Install dependencies
RUN apt-get update && apt-get install -qy python-psycopg2 \
python-twisted-core \
python-twisted-names \
python-nevow \
python-ipy \
python-yaml \
python-dev \
libsnmp-dev
# Build wiremaps
ADD . /wiremaps
WORKDIR /wiremaps
RUN python setup.py build_ext --inplace
# Run
EXPOSE 8087
RUN PGHOST=$DB_PORT_5432_TCP_ADDR \
PGPORT=$DB_PORT_5432_TCP_PORT \
twistd -no wiremaps