-
-
Notifications
You must be signed in to change notification settings - Fork 294
Expand file tree
/
Copy pathDockerfile
More file actions
32 lines (25 loc) · 885 Bytes
/
Copy pathDockerfile
File metadata and controls
32 lines (25 loc) · 885 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
# syntax=docker/dockerfile:1.7
FROM ubuntu:24.04
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
ca-certificates \
curl \
fonts-noto-cjk \
libayatana-appindicator3-1 \
libgomp1 \
librsvg2-2 \
libssl3 \
libwebkit2gtk-4.1-0 \
libxdo3 \
&& curl -fL "https://github.com/mayocream/koharu/releases/latest/download/koharu_linux_x64" -o /usr/local/bin/koharu \
&& chmod 0755 /usr/local/bin/koharu \
&& apt-get purge -y --auto-remove curl \
&& rm -rf /var/lib/apt/lists/*
RUN useradd --create-home --shell /bin/bash koharu \
&& install -d -o koharu -g koharu -m 755 /home/koharu/.local/share/Koharu
USER koharu
WORKDIR /home/koharu
VOLUME ["/home/koharu/.local/share/Koharu"]
EXPOSE 4000
CMD ["/usr/local/bin/koharu", "--headless", "--host", "0.0.0.0", "--port", "4000"]