diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..9289328 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,2 @@ +kind: template +load: python.starlark \ No newline at end of file diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..d9913ff --- /dev/null +++ b/Dockerfile @@ -0,0 +1,5 @@ +FROM python:3.9-slim +WORKDIR /app +RUN pip install --no-cache-dir -r requirements.txt +COPY . . +ENTRYPOINT [ "python", "-u", "/app/main.py" ] \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..d34b48b --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,10 @@ +version: "3" +services: + app: + image: giants-posts-bot:latest + build: + context: . + dockerfile: Dockerfile + restart: always + volumes: + - './config.json:/app/config.json'