-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDockerfile
34 lines (31 loc) · 1.12 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
FROM alpine:3.12
RUN apk add --no-cache python3 tzdata && \
python3 -m ensurepip && \
rm -r /usr/lib/python*/ensurepip && \
pip3 install --upgrade pip setuptools && \
if [ ! -e /usr/bin/pip ]; then ln -s pip3 /usr/bin/pip ; fi && \
if [[ ! -e /usr/bin/python ]]; then ln -sf /usr/bin/python3 /usr/bin/python; fi && \
rm -r /root/.cache && \
pip install https://github.com/sffjunkie/astral/archive/1.10.1.tar.gz && \
pip install https://github.com/markruys/gw2pvo/releases/download/1.3.0/gw2pvo-1.3.0.tar.gz
ENV GW_STATION_ID="" \
GW_ACCOUNT="" \
GW_PASSWORD="" \
PVO_SYSTEM_ID="" \
PVO_API_KEY="" \
PVO_INTERVAL="15" \
DARKSKY_API_KEY="" \
LOG="info" \
CITY="Amsterdam" \
TZ="Europe/Amsterdam"
ENTRYPOINT exec gw2pvo \
--gw-station-id ${GW_STATION_ID} \
--gw-account ${GW_ACCOUNT} \
--gw-password ${GW_PASSWORD} \
--pvo-system-id ${PVO_SYSTEM_ID} \
--pvo-api-key ${PVO_API_KEY} \
--pvo-interval ${PVO_INTERVAL} \
--darksky-api-key ${DARKSKY_API_KEY} \
--log ${LOG} \
--city ${CITY} \
--skip-offline