-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile_Client
More file actions
39 lines (31 loc) · 871 Bytes
/
Dockerfile_Client
File metadata and controls
39 lines (31 loc) · 871 Bytes
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
FROM eclipse-temurin:21-jdk-jammy
RUN apt-get update && apt-get install -y \
tigervnc-standalone-server \
tigervnc-common \
fluxbox \
libxrender1 \
libxtst6 \
libxi6 \
libgl1-mesa-glx \
libgtk-3-0 \
xfonts-base \
wget \
unzip \
&& rm -rf /var/lib/apt/lists/*
RUN wget -O /tmp/javafx.zip https://download2.gluonhq.com/openjfx/21.0.1/openjfx-21.0.1_linux-x64_bin-sdk.zip && \
unzip /tmp/javafx.zip -d /opt/ && \
mv /opt/javafx-sdk-21.0.1 /opt/javafx && \
rm /tmp/javafx.zip
WORKDIR /app
# avoid warnings in console
ENV DCONF_PROFILE=""
ENV GSETTINGS_BACKEND=memory
ENV NO_AT_BRIDGE=1
COPY target/*.jar /app
COPY client/res/ /app/client/res
COPY vnc-startup.sh /app/vnc-startup.sh
RUN chmod +x /app/vnc-startup.sh
EXPOSE 5901
EXPOSE 7000
# wird in docker-compose.yml überschrieben
CMD ["./vnc-startup.sh"]