Skip to content

Instantly share code, notes, and snippets.

@aabed
Created May 6, 2017 16:41
Show Gist options
  • Save aabed/3690e1eb656653a6acffafd956afc5fd to your computer and use it in GitHub Desktop.
Save aabed/3690e1eb656653a6acffafd956afc5fd to your computer and use it in GitHub Desktop.
FROM python:2.7-alpine
RUN wget https://releases.hashicorp.com/envconsul/0.6.1/envconsul_0.6.1_linux_amd64.zip&&unzip envconsul_0.6.1_linux_amd64.zip\
&& ln -sf $PWD/envconsul /usr/local/bin
ADD app.py /app.py
ADD requirements.txt /requirements.txt
RUN pip install -r /requirements.txt
ENTRYPOINT envconsul -consul 172.17.0.2:8500 -prefix $PREFIX python /app.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment