Demo entry 6362055

test

   

Submitted by anonymous on May 06, 2017 at 18:29
Language: Docker. Code size: 367 Bytes.

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

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).