BaseballBot/Dockerfile

19 lines
410 B
Docker
Raw Normal View History

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
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
CMD ["python", "/app/main.py"]