create new project

This commit is contained in:
falsycat 2023-07-22 21:44:46 +09:00
parent 8f34deb558
commit b5cb84828d
4 changed files with 18 additions and 0 deletions

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
__pycache__/
/config.json

9
docker-compose.yml Normal file
View 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
View 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
View File

@ -0,0 +1 @@
pybotters