Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

ngallot/docker-python-helloworld

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-python-helloworld

A Python dockerized hello world app This repo aims at showing how simple it can be to build a Docker container running a Python (very simple) app. Once you understand how this simple example works, it's easy to apply it to bigger apps.

Steps to run directly the python code

It's highly recommended to install the (empty) dependencies in a virtual environment.

  • Creating the virtual environment:
virtualenv venv
  • Activatingv the virtual environment:
source venv/bin/activate
  • Installing dependencies:
pip install -r requirements.txt
  • Running the code:
python main.py

Steps to run the python code withing a Docker container

  • Build the image:
docker build -t docker-python-helloworld:lastest
  • Run the container:
docker run docker-python-helloworld:latest 

About

A Python dockerized hello world app

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Morty Proxy This is a proxified and sanitized view of the page, visit original site.