26 lines
496 B
Docker
26 lines
496 B
Docker
FROM python:3.10.6-slim
|
|
|
|
# install dependencies
|
|
RUN apt-get update && apt-get -y upgrade && apt-get -y install git
|
|
|
|
RUN pip install --upgrade pip
|
|
|
|
WORKDIR /home
|
|
|
|
COPY requirements.txt requirements.txt
|
|
|
|
COPY config.py config.py
|
|
COPY main.py main.py
|
|
COPY utils.py utils.py
|
|
|
|
COPY bot_messages bot_messages/
|
|
COPY classes classes/
|
|
COPY cogs cogs/
|
|
COPY database_setup database_setup/
|
|
|
|
RUN pip install -r requirements.txt
|
|
|
|
# Expose to outside of container
|
|
EXPOSE 5000
|
|
|
|
CMD ["python3", "-u", "./main.py"] |