BaseballBot/Dockerfile

19 lines
410 B
Docker
Raw Normal View History

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