-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDockerfile
20 lines (17 loc) · 908 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
FROM frolvlad/alpine-python3:latest
RUN apk add --no-cache git && \
: "install dependencies which need compilation from packages" && \
apk add --no-cache py3-greenlet && \
adduser -D pulsemonitor && \
cd /home/pulsemonitor && \
su pulsemonitor sh -c 'mkdir .pulsemonitor && \
git clone https://github.com/Charcoal-SE/PulseMonitor' && \
pip install -r /home/pulsemonitor/PulseMonitor/requirements.txt && \
rm -rf /var/cache/apk/*
ADD --chown=pulsemonitor:pulsemonitor room_65945_name_Charcoal_Test_privileged_users /home/pulsemonitor/.pulsemonitor/
ADD --chown=pulsemonitor:pulsemonitor redunda_key.txt /home/pulsemonitor/.pulsemonitor/
ADD --chown=pulsemonitor:pulsemonitor location.txt /home/pulsemonitor/.pulsemonitor/
ADD run.prod /home/pulsemonitor/run.prod
#ADD docker-cron-15min /etc/periodic/15min/git-pull-sd
USER pulsemonitor
CMD ["/home/pulsemonitor/run.prod"]