-
Notifications
You must be signed in to change notification settings - Fork 19
/
Dockerfile.projector
29 lines (19 loc) · 1.73 KB
/
Dockerfile.projector
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
FROM rednoah/filebot
LABEL maintainer="Reinhard Pointner <[email protected]>"
RUN set -eux \
&& apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get remove -y openjdk-21-jre-headless \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y openjdk-17-jre \
&& rm -rvf /var/lib/apt/lists/*
RUN set -eux \
## ** install projector
&& curl -fsSL -o /tmp/projector-server.zip https://github.com/JetBrains/projector-server/releases/download/v1.8.1/projector-server-v1.8.1.zip \
&& unzip /tmp/projector-server.zip -d /opt \
&& mv -v /opt/projector-server-* /opt/projector-server \
&& rm -rvf /opt/projector-server/lib/slf4j-* /opt/projector-server/bin /tmp/projector-server.zip \
## ** apply custom application configuration
&& sed -i 's|-jar "$FILEBOT_HOME/jar/filebot.jar"|-classpath "/opt/projector-server/lib/*:/usr/share/filebot/jar/*" -Dorg.jetbrains.projector.server.enable=true -Dorg.jetbrains.projector.server.classToLaunch=net.filebot.Main org.jetbrains.projector.server.ProjectorLauncher|g; s|-XX:SharedArchiveFile=/usr/share/filebot/jsa/classes.jsa||g; s|-XX:+DisableAttachMechanism|-XX:+EnableDynamicAgentLoading -Djdk.attach.allowAttachSelf=true -Dnet.filebot.UserFiles.fileChooser=Swing -Dnet.filebot.glass.effect=false --add-opens=java.desktop/sun.font=ALL-UNNAMED --add-opens=java.desktop/java.awt=ALL-UNNAMED --add-opens=java.desktop/sun.java2d=ALL-UNNAMED --add-opens=java.desktop/java.awt.peer=ALL-UNNAMED --add-opens=java.desktop/sun.awt.image=ALL-UNNAMED --add-opens=java.desktop/java.awt.dnd.peer=ALL-UNNAMED --add-opens=java.desktop/java.awt.image=ALL-UNNAMED|g' /usr/bin/filebot
# install custom launcher scripts
COPY projector /
EXPOSE 8887
ENTRYPOINT ["/opt/bin/run-as-user", "/opt/bin/run", "/opt/filebot-projector/start"]