Compare commits

...

2 Commits

Author SHA1 Message Date
dbaa692711 Add dockerfile 2022-11-11 20:16:36 -06:00
5557c16d8c Sync vscode settings because why not 2022-11-11 20:16:25 -06:00
2 changed files with 25 additions and 0 deletions

5
.vscode/settings.json vendored Normal file
View File

@ -0,0 +1,5 @@
{
"python.linting.pylintEnabled": true,
"python.linting.enabled": true,
"python.formatting.provider": "black"
}

20
GhostBallBot/Dockerfile Normal file
View File

@ -0,0 +1,20 @@
# Copyright 2022 - c0de <c0de@c0de.dev>
# 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:<version> .
# 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"]