-
-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathDockerfile
37 lines (31 loc) · 1.06 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# syntax=docker/dockerfile:1
# Alpine is chosen for its small footprint
# compared to Ubuntu
FROM python:slim-bookworm
# install packages
RUN apt-get update \
&& apt-get install -y \
gcc \
g++ \
libglib2.0-0 \
python3-dev \
&& pip3 install tenacity requests PyQt5 \
&& apt-get remove -y gcc g++ python3-dev \
&& apt-get autoremove -y \
&& rm -rf /var/lib/apt/lists/*
# copy over files
WORKDIR /app
RUN mkdir /app/AzerothAuctionAssassinData/
RUN mkdir /app/utils/
COPY ./mega_alerts.py /app/
COPY ./utils/* /app/utils/
COPY ./AzerothAuctionAssassinData/* /app/AzerothAuctionAssassinData/
COPY ./run /app/
RUN chmod +x /app/*
# make default files
RUN printf "{}" > /app/AzerothAuctionAssassinData/desired_ilvl.json
RUN printf "[]" > /app/AzerothAuctionAssassinData/desired_ilvl_list.json
RUN printf "{}" > /app/AzerothAuctionAssassinData/desired_items.json
RUN printf "{}" > /app/AzerothAuctionAssassinData/desired_pets.json
RUN printf "{}" > /app/AzerothAuctionAssassinData/mega_data.json
CMD ["python3", "/app/mega_alerts.py"]