BaseballBot/Dockerfile
Zed 3525ea42e1 Jack's Changes (#1)
First merge after adding branch

Co-authored-by: c0de <c0de@c0de.dev>
Reviewed-on: c0de/BaseballBot#1
Co-authored-by: Zed <benolken5@gmail.com>
Co-committed-by: Zed <benolken5@gmail.com>
2024-04-23 22:19:20 +00:00

18 lines
415 B
Docker

# Copyright 2022 - c0de <c0de@c0de.dev>
# Licensed under the MIT License (https://opensource.org/licenses/MIT)
# Build with: docker build -t baseballbot:<version> .
# Run with: docker run -it
FROM python:3.10-alpine3.16 AS build
RUN pip install --no-cache-dir discord peewee
WORKDIR /app
COPY . .
FROM build AS run
ENV discord_token ""
ENV database_path "/tmp/baseball.db"
CMD ["python", "-u", "/app/main.py"]