This repository has been archived by the owner on Aug 12, 2024. It is now read-only.
forked from rsmacapinlac/docker-obsidian
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.arm64
61 lines (51 loc) · 1.55 KB
/
Dockerfile.arm64
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
FROM ghcr.io/linuxserver/baseimage-kasmvnc:debianbookworm
ARG BUILD_DATE
ARG VERSION
ARG OBSIDIAN_VERSION=1.5.8
# LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
LABEL maintainer="jack2game"
ENV \
CUSTOM_PORT="8080" \
TITLE="Obsidian v$OBSIDIAN_VERSION"
RUN \
echo "**** install packages ****" && \
# Update and install extra packages.
echo 'debconf debconf/frontend select Noninteractive' | sudo debconf-set-selections && \
apt-get update && \
apt-get install -y --no-install-recommends \
# Packages needed to download and extract obsidian.
curl \
desktop-file-utils \
libgtk-3-0 \
libnotify4 \
libatspi2.0-0 \
libsecret-1-0 \
libnss3 \
zlib1g-dev \
dbus-x11 \
uuid-runtime
# Install obsidian
RUN dl_url="https://github.com/obsidianmd/obsidian-releases/releases/download/v${OBSIDIAN_VERSION}/Obsidian-${OBSIDIAN_VERSION}-arm64.AppImage" && \
curl --location --output /obsidian.AppImage "$dl_url" && \
chmod a+x /obsidian.AppImage && \
/obsidian.AppImage --appimage-extract && \
chmod a+x /squashfs-root/obsidian && \
rm /obsidian.AppImage
# add local files
COPY /root /
COPY /rootarm64 /
# install fonts
RUN \
mkdir -p /usr/share/fonts/truetype && \
install -m644 ./*.ttf /usr/share/fonts/truetype/ && \
rm ./*.ttf && \
echo "**** cleanup ****" && \
apt-get autoclean && \
rm -rf \
/var/lib/apt/lists/* \
/var/tmp/* \
/tmp/*
# ports
EXPOSE 8080
# volumes
VOLUME ["/config"]