-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
36 lines (29 loc) · 1004 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
30
31
32
33
34
35
36
FROM ubuntu:latest
# Update packages and install software
RUN apt-get update \
&& apt-get -y upgrade \
&& apt-get -y install gnupg2 \
&& apt-get -y install wget apt-transport-https ca-certificates \
&& wget -O - https://repo.jotta.us/public.gpg | apt-key add - \
&& echo "deb https://repo.jotta.us/debian debian main" | tee /etc/apt/sources.list.d/jotta-cli.list \
&& apt-get update \
&& apt-get -y install jotta-cli \
&& apt-get -y install expect
# Add volumes for backup folder and configuration directories
VOLUME ["/config"]
VOLUME ["/backup"]
# copy in files
ADD /jottad/ /usr/local/jottad
# add execute permission
RUN chmod +x /usr/local/jottad/* /etc/init.d/jottad
# Open port
EXPOSE 14443
#set environment
ENV JOTTA_TOKEN=**None** \
JOTTA_DEVICE=**None** \
JOTTA_SCANINTERVAL=1h\
PUID=101 \
PGID=101 \
LOCALTIME=/usr/share/zoneinfo/Europe/Amsterdam
# setup container and start service
ENTRYPOINT ["/usr/local/jottad/entrypoint.sh"]