create docker container

This commit is contained in:
michivonah 2023-10-03 12:49:10 +02:00
parent cd1623af8a
commit 8fc035419a

20
Dockerfile Normal file
View file

@ -0,0 +1,20 @@
FROM python:3
# Create directory
RUN mkdir app
WORKDIR /app/
# Copy files
COPY main.py .
# Set enviromental variables
ENV DISCORD_WEBHOOK "https://discord.com/api/webhooks/XXXXXXXXXXXXXX/YYYYYYYYYYYYYYYYYYYYYYYYY"
ENV SUBS "383533, 323530, 353030"
# Install needed packages
RUN pip3 install --upgrade pip
RUN pip3 install pipenv
RUN pip install --no-cache-dir -r requirements.txt
# Start app
CMD ["python3","main.py"]