forked from p5nbTgip0r/autotune-docker
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
executable file
·29 lines (23 loc) · 889 Bytes
/
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
FROM node:alpine
################
# These variables are here as a list of what variables are used/checked
# Please modify them using `-e "env=value"` and NOT by modifying this file
################
# The image will not work without these set
ENV NS_HOST="https://mynightscout.azurewebsites.net"
ENV START_DATE="YYYY-MM-DD"
# Optional: Extra preferences to pass along when running `oref0-autotune`
# Example: -e "AUTOTUNE_PREFS=--end-date=2018-06-15"
ENV AUTOTUNE_PREFS=""
# Optional, only necessary if your NS is set to disallow anonymous read access
ENV API_SECRET=""
################
RUN apk update && apk add bash bc coreutils curl git jq tzdata && \
mkdir -p /openaps/settings /openaps/autotune && \
chown -Rh node:node /openaps/ /etc/localtime
COPY ./oref0 /oref0
WORKDIR /oref0
RUN npm install -g
COPY entrypoint.sh /entrypoint.sh
USER node
CMD ["/entrypoint.sh"]