-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
54 lines (40 loc) · 1.66 KB
/
Dockerfile
File metadata and controls
54 lines (40 loc) · 1.66 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
FROM maven:3-eclipse-temurin-25 AS builder
LABEL maintainer="contact@bittich.be"
WORKDIR /app
COPY pom.xml .
COPY ./event/pom.xml ./event/pom.xml
COPY ./artcoded/pom.xml ./artcoded/pom.xml
RUN mvn verify --fail-never
COPY ./artcoded/src ./artcoded/src
COPY ./event/src ./event/src
RUN mvn package -DskipTests
#FROM ibm-semeru-runtimes:open-25-jre-jammy
FROM eclipse-temurin:25-jre-jammy
LABEL maintainer="contact@bittich.be"
RUN apt-get update
COPY ./install-wkhtmltopdf.sh ./install-wkhtmltopdf.sh
# Set timezone
ENV CONTAINER_TIMEZONE='Europe/Brussels'
RUN apt-get update && apt-get install -y tzdata && \
rm /etc/localtime && \
ln -snf /usr/share/zoneinfo/$CONTAINER_TIMEZONE /etc/localtime && \
echo $CONTAINER_TIMEZONE > /etc/timezone && \
dpkg-reconfigure -f noninteractive tzdata && \
apt-get clean
# install wkhtmltopdf
RUN apt-get install -y wget
RUN apt-get install -y fontconfig libjpeg-turbo8 libssl-dev libxext6 libxrender-dev xfonts-base xfonts-75dpi
RUN bash /install-wkhtmltopdf.sh
# install mongodb tools
RUN apt-get install -y gnupg curl
RUN curl -fsSL https://www.mongodb.org/static/pgp/server-7.0.asc | \
gpg -o /usr/share/keyrings/mongodb-server-7.0.gpg \
--dearmor
RUN echo "deb [ arch=amd64,arm64 signed-by=/usr/share/keyrings/mongodb-server-7.0.gpg ] https://repo.mongodb.org/apt/ubuntu jammy/mongodb-org/7.0 multiverse" | tee /etc/apt/sources.list.d/mongodb-org-7.0.list
RUN apt-get update
RUN apt-get install -y mongodb-org-tools
WORKDIR /app
COPY --from=builder /app/artcoded/target/api-backend.jar ./api-backend.jar
COPY docker-entrypoint.sh docker-entrypoint.sh
RUN chmod +x docker-entrypoint.sh
ENTRYPOINT [ "/app/docker-entrypoint.sh"]