-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
25 lines (18 loc) · 885 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
FROM openjdk:12-alpine
MAINTAINER nicolas.richeton@gmail.com
ENV TMPDIR /tmp/esigate
RUN set -xe \
&& mkdir -p "$TMPDIR"
ENV ESIGATE_HOME /usr/local/esigate
RUN mkdir -p "$ESIGATE_HOME"
RUN mkdir -p "$ESIGATE_HOME/bin"
RUN mkdir -p "$ESIGATE_HOME/etc"
RUN mkdir -p "$ESIGATE_HOME/log"
RUN mkdir -p "$ESIGATE_HOME/extensions"
RUN mkdir -p "$ESIGATE_HOME/work"
WORKDIR $ESIGATE_HOME
RUN wget -O esigate-server.jar https://search.maven.org/remotecontent?filepath=org/esigate/esigate-server/5.3/esigate-server-5.3.jar
EXPOSE 8080
EXPOSE 8081
ENTRYPOINT java -server -Desigate.config=/usr/local/esigate/etc/esigate.properties -Dserver.extraClasspath="$(echo /usr/local/esigate/extensions/*.jar | tr ' ' ':')" \
-Djava.io.tmpdir=$TMPDIR -Dlog4j.configuration=file:///usr/local/esigate/etc/log4j.properties $JAVA_OPTIONS -jar "/usr/local/esigate/esigate-server.jar" start