HUB
Sign inSign up

anandphpdocker/dockernickpython

By anandphpdocker

•Updated over 8 years ago

docker nick's python test.

Image
0

2.4K

anandphpdocker/dockernickpython repository overview

⁠Flask API Endpoint

Use this repo to build a RESTful API Endpoint in Python 3.6

⁠Prerequisite

  • Ubuntu 16.04 with port 5000 open

⁠Instructions

  1. Install Python 3.6 on Unbuntu
sudo add-apt-repository ppa:jonathonf/python-3.6
sudo apt-get update
sudo apt-get install python3.6
  1. Install pip for python 3.6
sudo apt install python3.6-dev
sudo apt install python3.6-venv
wget https://bootstrap.pypa.io/get-pip.py
sudo python3.6 get-pip.py
sudo ln -s /usr/bin/python3.6 /usr/local/bin/python3
sudo ln -s /usr/local/bin/pip /usr/local/bin/pip3
  1. Install virtualenv
pip install virtualenv
  1. Create a virtualenv project and activate it
virtualenv apiendpoint --python=python3.6
source apiendpoint/bin/activate
cd apiendpoint/
  1. Install Flask-RESTful
pip install Flask-RESTful
  1. Download from git repo
pass
  1. Install nginx
apt-get install nginx
Tag summary
Recent tags
Content type
Image
Digest
Size
52.2 MB
Last updated
over 8 years ago
docker pull anandphpdocker/dockernickpython:latest