-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.github
More file actions
38 lines (29 loc) · 1.28 KB
/
Dockerfile.github
File metadata and controls
38 lines (29 loc) · 1.28 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
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 compiled/api-backend.jar ./api-backend.jar
COPY docker-entrypoint.sh docker-entrypoint.sh
RUN chmod +x docker-entrypoint.sh
ENTRYPOINT [ "/app/docker-entrypoint.sh"]