-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
30 lines (24 loc) · 1.01 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
ARG JAVA_VERSION=21
ARG PLAYWRIGHT_VERSION=1.49.0
FROM amazoncorretto:${JAVA_VERSION} AS java
FROM node:23-bookworm-slim
ARG PLAYWRIGHT_VERSION
RUN npx -y playwright@${PLAYWRIGHT_VERSION} install --with-deps firefox
ARG JAVA_VERSION
COPY --from=java /usr/lib/jvm/java-${JAVA_VERSION}-amazon-corretto /usr/lib/jvm/java-${JAVA_VERSION}-amazon-corretto
ENV LANG=C.UTF-8 \
JAVA_HOME=/usr/lib/jvm/java-${JAVA_VERSION}-amazon-corretto \
TZ=Europe/Paris \
DEBIAN_FRONTEND=noninteractive \
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1
# Install necessary packages and set timezone
RUN apt-get update \
&& apt-get install -y --no-install-recommends ca-certificates curl fonts-dejavu libopencv-dev tzdata \
&& rm -rf /var/lib/apt/lists/* /var/cache/apt/archives/* \
&& ln -snf /usr/share/zoneinfo/"$TZ" /etc/localtime \
&& echo "$TZ" > /etc/timezone \
&& dpkg-reconfigure --frontend noninteractive tzdata
COPY build/install/core hibernate.cfg.xml /app/
WORKDIR /app
EXPOSE 37100
CMD ["./bin/core", "--enable-jobs"]