mirror of
https://github.com/michivonah/themepark-alerts.git
synced 2025-12-22 20:36:27 +01:00
create docker container
This commit is contained in:
parent
cd1623af8a
commit
8fc035419a
1 changed files with 20 additions and 0 deletions
20
Dockerfile
Normal file
20
Dockerfile
Normal 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"]
|
||||||
Loading…
Add table
Add a link
Reference in a new issue