diff --git a/Dockerfile b/Dockerfile index 2241224..9619133 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,5 @@ FROM ghcr.io/linuxserver/baseimage-rdesktop-web:focal -# set version label -ARG OBSIDIAN_VERSION=0.13.31 - LABEL org.opencontainers.image.authors="github@sytone.com" LABEL org.opencontainers.image.source="https://github.com/sytone/obsidian-remote" LABEL org.opencontainers.image.title="Container hosted Obsidian MD" @@ -26,6 +23,9 @@ RUN \ /var/tmp/* \ /tmp/* +# set version label +ARG OBSIDIAN_VERSION=0.13.31 + RUN \ echo "**** download obsidian ****" && \ curl \ diff --git a/README.md b/README.md index 7341608..88fe80e 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,7 @@ docker run -d ` ## Setting PUID and PGID -To set PUID and PGID use the follow environment variables on the command line, by default the IDs are 911/911 +To set PUID and PGID use the follow environment variables on the command line, by default the IDs are 911/911 ```PowerShell docker run --rm -it ` @@ -59,8 +59,7 @@ id $user To build and use it locally run the following commands: ```PowerShell -docker build --pull --rm --build-arg ` - BUILD_DATE=$(date -uformat +"%Y%m%d") ` +docker build --pull --rm ` -f "Dockerfile" ` -t obsidian-remote:latest ` "." @@ -90,5 +89,8 @@ services: volumes: - /home/obsidian/vaults:/vaults - /home/obsidian/config:/config/.config/obsidian + environment: + - PUID=1000 + - PGID=1000 ```