-
Notifications
You must be signed in to change notification settings - Fork 154
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
516595d
commit fbb7a13
Showing
4 changed files
with
53 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
FROM ghcr.io/linuxserver/baseimage-kasmvnc:debianbullseye | ||
|
||
LABEL maintainer="github@sytone.com" \ | ||
org.opencontainers.image.authors="github@sytone.com" \ | ||
org.opencontainers.image.source="https://github.com/sytone/obsidian-remote" \ | ||
org.opencontainers.image.title="Container hosted Obsidian MD" \ | ||
org.opencontainers.image.description="Hosted Obsidian instance allowing access via web browser" | ||
|
||
# Set version label | ||
ARG OBSIDIAN_VERSION=1.7.4 | ||
ARG ARCH=arm64 | ||
|
||
# Update and install extra packages | ||
RUN echo "**** install packages ****" && \ | ||
apt-get update && \ | ||
apt-get install -y --no-install-recommends curl libnss3 zlib1g-dev dbus-x11 uuid-runtime && \ | ||
apt-get clean && rm -rf /var/lib/apt/lists/* /var/tmp/* /tmp/* | ||
|
||
# Download and install Obsidian | ||
RUN echo "**** download obsidian ****" && \ | ||
curl -L -o /obsidian.AppImage \ | ||
"https://github.com/obsidianmd/obsidian-releases/releases/download/v${OBSIDIAN_VERSION}/Obsidian-${OBSIDIAN_VERSION}-${ARCH}.AppImage" && \ | ||
chmod +x /obsidian.AppImage && \ | ||
/obsidian.AppImage --appimage-extract && \ | ||
rm /obsidian.AppImage | ||
|
||
# Environment variables | ||
ENV CUSTOM_PORT="8080" \ | ||
CUSTOM_HTTPS_PORT="8443" \ | ||
CUSTOM_USER="" \ | ||
PASSWORD="" \ | ||
SUBFOLDER="" \ | ||
TITLE="Obsidian v$OBSIDIAN_VERSION" \ | ||
FM_HOME="/vaults" | ||
|
||
# Add local files | ||
COPY root/ / | ||
|
||
# Expose ports and volumes | ||
EXPOSE 8080 8443 | ||
VOLUME ["/config","/vaults"] | ||
|
||
# Define a healthcheck | ||
HEALTHCHECK CMD /bin/sh -c 'if [ -z "$CUSTOM_USER" ] || [ -z "$PASSWORD" ]; then curl --fail http://localhost:8080/ || exit 1; else curl --fail --user "$CUSTOM_USER:$PASSWORD" http://localhost:8080/ || exit 1; fi' |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.