forked from sytone/obsidian-remote
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
48 lines (40 loc) · 1.33 KB
/
Copy pathDockerfile
File metadata and controls
48 lines (40 loc) · 1.33 KB
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
FROM ghcr.io/linuxserver/baseimage-rdesktop-web:focal
LABEL org.opencontainers.image.authors="braintobytes@braintobytes.com"
LABEL org.opencontainers.image.source="https://github.com/BraintoByte/obsidian-remote"
LABEL org.opencontainers.image.title="Container hosted Obsidian MD"
LABEL org.opencontainers.image.description="Hosted Obsidian (latest version) instance allowing access via web browser"
RUN \
echo "**** install packages ****" && \
# Update and install extra packages.
apt-get update && \
apt-get install -y --no-install-recommends \
# Packages needed to download and extract obsidian.
curl \
libnss3 \
wget \
# Install Chrome dependencies.
dbus-x11 \
uuid-runtime && \
echo "**** cleanup ****" && \
apt-get autoclean && \
rm -rf \
/var/lib/apt/lists/* \
/var/tmp/* \
/tmp/*
COPY download_obsdian.py .
RUN python3 download_obsdian.py
RUN \
echo "**** extract obsidian ****" && \
chmod +x /obsidian.AppImage && \
/obsidian.AppImage --appimage-extract
ENV \
CUSTOM_PORT="8080" \
GUIAUTOSTART="true" \
HOME="/vaults" \
TITLE="Obsidian v$OBSIDIAN_VERSION"
# add local files
COPY root/ /
EXPOSE 8080
EXPOSE 27123
EXPOSE 27124
VOLUME ["/config","/vaults"]