Create dockerfile for bot. Add bot to compose.
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
FROM python:3.8.10-alpine3.14
|
||||
|
||||
# need to install build dependencies
|
||||
RUN apk add --no-cache --update python3 mariadb-connector-c-dev \
|
||||
&& apk add --no-cache --update --virtual build-deps python3-dev g++ gfortran musl-dev \
|
||||
libffi-dev openssl-dev mariadb-dev
|
||||
|
||||
# upgrade pip
|
||||
RUN pip install --upgrade pip
|
||||
|
||||
WORKDIR /home
|
||||
|
||||
COPY classes classes/
|
||||
COPY cogs cogs/
|
||||
COPY utilities utilities/
|
||||
COPY highscores.py highscores.py
|
||||
COPY requirements.txt requirements.txt
|
||||
|
||||
RUN pip install -r requirements.txt
|
||||
|
||||
RUN apk del build-deps
|
||||
|
||||
CMD ["python3", "./highscores.py"]
|
||||
Reference in New Issue
Block a user