-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathDockerfile
38 lines (28 loc) · 981 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
37
38
FROM ubuntu:16.04
LABEL maintainer="andrekosak@icloud.com"
# To get rid of error messages like "debconf: unable to initialize frontend: Dialog":
RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections
RUN apt-get -q update && apt-get install -qy unzip \
supervisor \
xmlstarlet \
vim \
wget \
default-jre && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* && \
rm -rf /tmp/*
ADD asset/* /opt/
RUN wget --no-check-certificate \
https://install.service-now.com/glide/distribution/builds/package/mid/2019/01/18/mid.london-06-27-2018__patch5-01-03-2019_01-18-2019_0328.linux.x86-64.zip \
-O /tmp/mid.zip && \
unzip -d /opt /tmp/mid.zip && \
chmod 755 /opt/init && \
chmod 755 /opt/fill-config-parameter && \
rm -rf /tmp/*
RUN rm -f /opt/agent/config.xml
EXPOSE 80 443
VOLUME /opt/agent/scripts
VOLUME /opt/agent/work
VOLUME /opt/agent/keystore
ENTRYPOINT ["/opt/init"]
CMD ["mid:start"]