-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
30 lines (24 loc) · 876 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
FROM ubuntu:latest
RUN apt-get update \
&& apt-get install -y software-properties-common \
&& add-apt-repository ppa:openjdk-r/ppa \
&& apt-get install -y openjdk-11-jdk \
libxrender1 \
iptables \
gettext \
maven \
wget \
zsh \
git \
vim
RUN wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | zsh || true
COPY ./config/templates/server.properties.template /etc/blynk/config/server.properties.template
COPY ./config/templates/mail.properties.template /etc/blynk/config/mail.properties.template
COPY ./docker-entrypoint/blynk.sh /usr/local/bin/docker-entrypoint.sh
RUN chmod +x /usr/local/bin/docker-entrypoint.sh \
&& mkdir -p /blynk/data \
&& mkdir -p /blynk/log \
&& mkdir /blynk/config \
&& touch /blynk/mail.properties
ENTRYPOINT ["docker-entrypoint.sh"]
CMD tail -f /dev/null