From edb1756c6951755333d0d3e2d470c283cc8cbebe Mon Sep 17 00:00:00 2001 From: starnakin Date: Sun, 4 Jun 2023 11:48:19 +0200 Subject: [PATCH] core: put config in json --- Dockerfile | 7 +++++++ config.py | 2 +- config.json => config/config.json | 0 3 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 Dockerfile rename config.json => config/config.json (100%) diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..0a9631f --- /dev/null +++ b/Dockerfile @@ -0,0 +1,7 @@ +FROM alpine + +RUN apk add git python3 py3-pip +RUN git clone https://git.chauvet.pro/bozogang/bozo-backend app +WORKDIR /app +RUN pip install -r requirements.txt +CMD ["python3", "main.py"] diff --git a/config.py b/config.py index 0d411de..4cdb664 100644 --- a/config.py +++ b/config.py @@ -1,6 +1,6 @@ import json -f = open('config.json') +f = open('./config/config.json') data = json.load(f) diff --git a/config.json b/config/config.json similarity index 100% rename from config.json rename to config/config.json