BaseballBot/Dockerfile

19 lines
399 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)
# 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"]