Skip to content

Instantly share code, notes, and snippets.

@alexanderzobnin
Created June 10, 2017 09:27
Show Gist options
  • Save alexanderzobnin/acc8270832098f3316b6072023db5209 to your computer and use it in GitHub Desktop.
Save alexanderzobnin/acc8270832098f3316b6072023db5209 to your computer and use it in GitHub Desktop.
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