Skip to content

Build your personal knowledge base with Trilium Notes

fix docker build

zadame9ab044e462f
diff --git a/.gitignore b/.gitignore
index a58d0910ee..746a4696ad 100644
--- a/.gitignore
+++ b/.gitignore
@@ -7,3 +7,4 @@ yarn-error.log
config.ini
cert.key
cert.crt
+server-package.json
\ No newline at end of file
diff --git a/Dockerfile b/Dockerfile
index aa4a40d274..3d0540d8e6 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -3,9 +3,7 @@ FROM node:12.12.0-alpine
# Create app directory
WORKDIR /usr/src/app
-# Copy both package.json and package-lock.json
-# where available (npm@5+)
-COPY package.json package-lock.json ./
+COPY server-package.json package.json
# Install app dependencies
RUN set -x \
diff --git a/bin/build-docker.sh b/bin/build-docker.sh
index fff750404d..69b705c1bf 100755
--- a/bin/build-docker.sh
+++ b/bin/build-docker.sh
@@ -3,6 +3,8 @@
VERSION=`jq -r ".version" package.json`
SERIES=${VERSION:0:4}-latest
+cat package.json | grep -v electron > server-package.json
+
sudo docker build -t zadam/trilium:$VERSION -t zadam/trilium:$SERIES .
if [[ $VERSION != *"beta"* ]]; then