Public Repository

Last pushed: 2 years ago
Short Description
Jinja2 live parser Dockerfile
Full Description

Jinja2 live parser Dockerfile

How-to

  • Pull Image

      docker pull sahilsk/j2parser
    
  • Run it

       docker run -d -p 49153:5000 sahilsk/j2parser
    

Dockerfile

###################################
# Jinja2 live parser Dockerfile
#
# Version: 0.1
# Author:  Sonu K. Meena(sahilsk)<sonukr666@gmail.com>
###################################

# Pull base image.
FROM python:2.7

RUN git clone https://github.com/sahilsk/jinja2-live-parser.git /data

WORKDIR /data

# Install dependencies
RUN pip install -r requirements.txt

# Change bind host
RUN  sed -i 's/\(.*\)app.run()/\1app.run(host="0.0.0.0")/'  parser.py

# Expose port to Host
EXPOSE 5000

# Define default command.
CMD ["python", "parser.py"]

Credits:

All credit to Antonin Bourguignon for writing live j2 parser web interface. (:

Docker Pull Command
Owner
sahilsk

Comments (0)