Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/racksync/python-docker
Dockerization Python
https://github.com/racksync/python-docker
Last synced: about 2 months ago
JSON representation
Dockerization Python
- Host: GitHub
- URL: https://github.com/racksync/python-docker
- Owner: racksync
- Created: 2024-04-07T17:25:13.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-04-08T08:30:28.000Z (9 months ago)
- Last Synced: 2024-04-08T22:07:36.093Z (9 months ago)
- Language: Python
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# python-docker
### Local development environment for Python using Docker.
1. Prerequisites
```
sudo python3 -m pip install Flask
```
or
```
sudo python3 -m pip install -r requirements.txt
```2. Run the application
```
python3 app.py
```### Dockerize
1. Build the image
```
docker build -t python-docker .
```2. Run the container
```
docker run -d --name --restart unless-stopped python-app -p 8080:8080 python-docker
```3. Access the application
```
http://localhost:8080/quote
```4. Push Docker Image
```
```