2022-11-12 02:16:36 +00:00
|
|
|
# Copyright 2022 - c0de <c0de@c0de.dev>
|
|
|
|
# Licensed under the MIT License (https://opensource.org/licenses/MIT)
|
|
|
|
|
2022-11-12 07:00:24 +00:00
|
|
|
# Build with: docker build -t baseballbot:<version> .
|
2022-11-12 02:16:36 +00:00
|
|
|
# Run with: docker run -it
|
|
|
|
|
|
|
|
FROM python:3.10-alpine3.16 AS build
|
|
|
|
|
2022-12-10 18:36:36 +00:00
|
|
|
RUN pip install --no-cache-dir discord peewee
|
2022-11-12 03:29:05 +00:00
|
|
|
WORKDIR /app
|
|
|
|
COPY . .
|
2022-11-12 02:16:36 +00:00
|
|
|
|
|
|
|
FROM build AS run
|
|
|
|
|
|
|
|
ENV discord_token ""
|
2022-11-12 07:00:24 +00:00
|
|
|
ENV database_path "/tmp/baseball.db"
|
2022-11-12 02:16:36 +00:00
|
|
|
|
2024-04-23 22:19:20 +00:00
|
|
|
CMD ["python", "-u", "/app/main.py"]
|