From b5cb84828da7b166dbb72afdbfd27ab34dd9833f Mon Sep 17 00:00:00 2001 From: falsycat Date: Sat, 22 Jul 2023 21:44:46 +0900 Subject: [PATCH] create new project --- .gitignore | 2 ++ docker-compose.yml | 9 +++++++++ main.py | 6 ++++++ requirements.txt | 1 + 4 files changed, 18 insertions(+) create mode 100644 .gitignore create mode 100644 docker-compose.yml create mode 100644 main.py create mode 100644 requirements.txt diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0397a1b --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +__pycache__/ +/config.json diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..2aaa2a8 --- /dev/null +++ b/docker-compose.yml @@ -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/ diff --git a/main.py b/main.py new file mode 100644 index 0000000..71d9a9b --- /dev/null +++ b/main.py @@ -0,0 +1,6 @@ +import json + +with open("config.json", "r") as file: + config = json.load(file) + +print(config) diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..5a2cf58 --- /dev/null +++ b/requirements.txt @@ -0,0 +1 @@ +pybotters