create new project
This commit is contained in:
parent
8f34deb558
commit
b5cb84828d
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
__pycache__/
|
||||
/config.json
|
9
docker-compose.yml
Normal file
9
docker-compose.yml
Normal file
@ -0,0 +1,9 @@
|
||||
version: '3'
|
||||
|
||||
services:
|
||||
env:
|
||||
image: python:3-alpine
|
||||
command: sh -c "pip3 install -q -r requirements.txt && python3 main.py"
|
||||
working_dir: /repo/
|
||||
volumes:
|
||||
- ./:/repo/
|
6
main.py
Normal file
6
main.py
Normal file
@ -0,0 +1,6 @@
|
||||
import json
|
||||
|
||||
with open("config.json", "r") as file:
|
||||
config = json.load(file)
|
||||
|
||||
print(config)
|
1
requirements.txt
Normal file
1
requirements.txt
Normal file
@ -0,0 +1 @@
|
||||
pybotters
|
Loading…
Reference in New Issue
Block a user