From dbaa69271111416ff8b6e88ccc832fc0a7e443cd Mon Sep 17 00:00:00 2001 From: c0de Date: Fri, 11 Nov 2022 20:16:36 -0600 Subject: [PATCH] Add dockerfile --- GhostBallBot/Dockerfile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 GhostBallBot/Dockerfile diff --git a/GhostBallBot/Dockerfile b/GhostBallBot/Dockerfile new file mode 100644 index 0000000..394c47d --- /dev/null +++ b/GhostBallBot/Dockerfile @@ -0,0 +1,20 @@ +# Copyright 2022 - c0de +# Licensed under the MIT License (https://opensource.org/licenses/MIT) + +# Multistage docker file, using a very minimal 17.6 MB base image +# Results in a cross-platform 76 MB image including all dependencies +# Build with: docker build -t ghotballbot: . +# Run with: docker run -it + +FROM python:3.10-alpine3.16 AS build + +RUN pip install discord peewee +COPY . /app + +FROM build AS run + +ENV discord_token "" +ENV database_path "/tmp/ghostball.db" + +WORKDIR /app +CMD ["python", "/app/main.py"]