-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
37 lines (29 loc) · 1.13 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
FROM ubuntu:18.04
MAINTAINER Carlo Feliciano Aureus <chino.aureus@gmail.com>
COPY target/call-event-service-1.0.jar /tmp/call-event-service-1.0.jar
COPY ubuntu-linux-run.sh /tmp/ubuntu-linux-run.sh
RUN apt-get update && \
apt-get install -y openjdk-8-jre && \
mkdir /app && \
mv /tmp/call-event-service-1.0.jar /app && \
mv /tmp/ubuntu-linux-run.sh /app && \
chmod +x /app/*.sh
# Setup Image
# ============
WORKDIR /app
ENV JAVA_HOME /usr/lib/jvm/default-java
ENV PATH ".:$JAVA_HOME/bin:${PATH}"
# Spring App Configuration.
# uncomment to Override the settings in application.properties in the section
#APP_NEO4J__URI=bolt+routing://localhost:7687
#APP_NEO4J_USER=cesuser
#APP_NEO4J_PASSWORD=cesuser
# the server listens on port 9090 as configured in application.properties
EXPOSE 9090
# command to run the server
ENTRYPOINT ["/app/ubuntu-linux-run.sh"]
# argument for the shell specified in ENTRYPOINT
# Instead of running the spring app, one can run specific commands inside the docker image by passing
# an argument in the docker run <image> <command-arg>
# Note: CMD is overriden if <command-arg is present
CMD ["runapp"]