forked from idempiere/idempiere-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
41 lines (31 loc) · 1.26 KB
/
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
39
40
41
FROM openjdk:11-jdk AS builder
ENV IDEMPIERE_HOME /opt/idempiere
ENV IDEMPIERE_PLUGINS_HOME $IDEMPIERE_HOME/plugins
ENV IDEMPIERE_LOGS_HOME $IDEMPIERE_HOME/log
WORKDIR $IDEMPIERE_HOME
# Install iDempiere
COPY idempiere/idempiere.build.gtk.linux.x86_64.tar.gz /tmp/idempiere/
RUN tar -zxf /tmp/idempiere/idempiere.build.gtk.linux.x86_64.tar.gz --directory /tmp/idempiere && \
mv /tmp/idempiere/x86_64/* $IDEMPIERE_HOME && \
rm -rf /tmp/idempiere
# Copy over shell script
COPY idempiere-server.sh .
FROM openjdk:11-jdk AS idempiere
WORKDIR /
RUN apt-get update && \
apt-get install -y --no-install-recommends nano postgresql-client telnet && \
rm -rf /var/lib/apt/lists/*
ENV IDEMPIERE_HOME /opt/idempiere
ENV IDEMPIERE_PLUGINS_HOME $IDEMPIERE_HOME/plugins
ENV IDEMPIERE_LOGS_HOME $IDEMPIERE_HOME/log
# Copy over iDempiere files
COPY --from=builder $IDEMPIERE_HOME $IDEMPIERE_HOME
# Now set the entrypoint
COPY docker-entrypoint.sh .
COPY health-check.sh .
COPY install-sources.sh .
COPY install-migrations-incrementally.sh .
# Set the entrypoint & commands
HEALTHCHECK --interval=5s --timeout=5s --retries=200 --start-period=5s CMD /health-check.sh
ENTRYPOINT ["/docker-entrypoint.sh"]
CMD ["idempiere", "install-sources"]