forked from faucetsdn/poseidon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.poseidon
30 lines (25 loc) · 884 Bytes
/
Dockerfile.poseidon
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
FROM alpine:3.7
LABEL maintainer="[email protected]"
RUN apk upgrade --no-cache && \
apk add --no-cache \
build-base \
python3 \
python3-dev \
py3-paramiko \
tini \
yaml-dev && \
pip3 install --no-cache-dir --trusted-host pypi.python.org --upgrade pip && \
rm -rf /var/cache/* && \
rm -rf /root/.cache/*
COPY . /tmp/poseidonWork
WORKDIR /tmp/poseidonWork
ENV PYTHONPATH /tmp/poseidonWork/poseidon:$PYTHONPATH
ENV POSEIDON_CONFIG /tmp/poseidonWork/config/poseidon.config
ENV POSEIDON_LOGGER /tmp/poseidonWork/logging.json
# install dependencies of poseidon modules for poseidon
RUN find . -name requirements.txt -type f -exec pip3 install -r {} \;
ENV PYTHONUNBUFFERED 0
ENV SYS_LOG_HOST NOT_CONFIGURED
ENV SYS_LOG_PORT 514
ENTRYPOINT ["tini", "--"]
CMD ["/usr/bin/python3", "/tmp/poseidonWork/poseidon/poseidonMonitor/poseidonMonitor.py"]