-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
30 lines (22 loc) · 1.05 KB
/
Dockerfile
File metadata and controls
30 lines (22 loc) · 1.05 KB
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
# Start with a base image containing Java runtime (Temurin 21 on Debian)
FROM eclipse-temurin:21-jre-jammy
# Add Maintainer Info
LABEL maintainer="sprunck.markus@gmail.com"
# Use apt-get for Debian-based image: install curl, graphviz and fonts
RUN apt-get update \
&& apt-get install -y --no-install-recommends curl graphviz fonts-dejavu-core nodejs npm \
&& rm -rf /var/lib/apt/lists/* \
&& if [ ! -x /usr/bin/node ] && [ -x /usr/bin/nodejs ]; then ln -s /usr/bin/nodejs /usr/bin/node; fi
# create default target folder for application data
RUN mkdir -p /usr/local/bin
RUN mkdir -p /usr/local/bin/data
# Add the application's input files to the container
ADD /data/*.xlsx /usr/local/bin/data
# Make port available to the world outside this container
EXPOSE 8444
# Add the application's jar to the container
ADD /target/beteigeuze.jar /usr/local/bin/beteigeuze.jar
ADD /src/main/resources/application.yml /usr/local/bin/application.yml
WORKDIR /usr/local/bin
# Run the jar file
ENTRYPOINT ["java","-jar", "/usr/local/bin/beteigeuze.jar"]