https://github.com/felipecruz91/python-dev-env
Python-based Docker Dev Environment
https://github.com/felipecruz91/python-dev-env
docker-dev-environment python3
Last synced: about 1 month ago
JSON representation
Python-based Docker Dev Environment
- Host: GitHub
- URL: https://github.com/felipecruz91/python-dev-env
- Owner: felipecruz91
- Created: 2022-01-10T09:06:16.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-01-10T09:21:07.000Z (over 4 years ago)
- Last Synced: 2025-03-20T02:47:32.291Z (about 1 year ago)
- Topics: docker-dev-environment, python3
- Language: Python
- Homepage:
- Size: 257 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# python-dev-env
This is an example of a Python-based Docker Dev Environment that shows how to set environment variables with regards this [issue](https://github.com/docker/dev-environments/issues/88).

## Getting started
Open Docker Desktop and create a Dev Environment from `https://github.com/felipecruz91/python-dev-env`

Clikc on `Open in VSCode` and run the python script within the dev container:
```cli
python -u hello_world.py
```
The script will print the value of the environment variable `RUNNING_IN_CONTAINER`.
The output should be `1` as it is the value set in the [Dockerfile.devenv](.docker/Dockerfile.devenv#L3)