Created
June 10, 2017 09:27
-
-
Save alexanderzobnin/acc8270832098f3316b6072023db5209 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM debian:stable | |
# Copy the current directory contents into the container at /zas | |
# Current dir contains only github repo with zas_agent | |
ADD . /zas | |
WORKDIR /zas | |
RUN apt-get update && apt-get install -y ca-certificates python python-setuptools python-numpy | |
WORKDIR /zas/zas_agent/install | |
RUN python check_python_packages.py | |
WORKDIR /zas/zas_agent | |
RUN python setup.py build | |
RUN python setup.py install | |
# Make port 10050 available to the world outside this container | |
EXPOSE 10050 | |
# Run zas_agent.py when the container launches | |
CMD ["/usr/local/bin/zas_agent.py", "--start", "--daemonize"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment