zhangtemplar / docker-python-eve

Dockerized python-eve, a python REST API framework.

Home Page:https://hub.docker.com/r/nicolaevladescu/python-eve

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Dockerized python-eve

Docker Stars Docker Pulls

What's inside

Tags

  1. 2.7 : (2.7.12/Dockerfile)
  2. 3.5 : (3.5.2/Dockerfile)

Usage

Pull it from the official docker registry:

docker pull nicolaevladescu/python-eve:<tag>

Test that python is installed and working:

docker run --rm --name python-eve nicolaevladescu/python-eve:2.7 python --version

The default CMD runs a python main.py from /src.

You can mount a folder from the host to /src and run it with the default CMD.

docker run --detach --volume $(pwd):/src --name python-eve nicolaevladescu/python-eve:2.7

Or run a file other than main.py:

docker run --detach --volume $(pwd):/src --name python-eve nicolaevladescu/python-eve:2.7 python run.py

To-do

  • Replace gosu with su-exec because it's only 10KB instead of 1.8MB.

About

Dockerized python-eve, a python REST API framework.

https://hub.docker.com/r/nicolaevladescu/python-eve

License:MIT License


Languages

Language:Dockerfile 100.0%