Skip to content

Commit

Permalink
Merge pull request #316 from TriliumNext/update-start-docker
Browse files Browse the repository at this point in the history
Update start-docker.sh to be more distro-agnostic
  • Loading branch information
eliandoran authored Aug 8, 2024
2 parents 50a6a1f + 13ad877 commit 9d59668
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions bin/build-docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ cat package.json | grep -v electron > server-package.json
echo "Compiling typescript..."
npx tsc

sudo docker build -t triliumnext/notes:$VERSION --network host -t zadam/trilium:$SERIES .
sudo docker build -t triliumnext/notes:$VERSION --network host -t triliumnext/notes:$SERIES .

if [[ $VERSION != *"beta"* ]]; then
sudo docker tag zadam/trilium:$VERSION zadam/trilium:latest
sudo docker tag triliumnext/notes:$VERSION triliumnext/notes:latest
fi
2 changes: 1 addition & 1 deletion start-docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
[[ ! -z "${USER_GID}" ]] && groupmod -og ${USER_GID} node || echo "No USER_GID specified, leaving 1000"

chown -R node:node /home/node
exec gosu node node ./src/www
exec su -c "node ./src/www" node

0 comments on commit 9d59668

Please sign in to comment.