mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
fix docker build
This commit is contained in:
parent
fda219d070
commit
e9ab044e46
1
.gitignore
vendored
1
.gitignore
vendored
@ -7,3 +7,4 @@ yarn-error.log
|
|||||||
config.ini
|
config.ini
|
||||||
cert.key
|
cert.key
|
||||||
cert.crt
|
cert.crt
|
||||||
|
server-package.json
|
@ -3,9 +3,7 @@ FROM node:12.12.0-alpine
|
|||||||
# Create app directory
|
# Create app directory
|
||||||
WORKDIR /usr/src/app
|
WORKDIR /usr/src/app
|
||||||
|
|
||||||
# Copy both package.json and package-lock.json
|
COPY server-package.json package.json
|
||||||
# where available (npm@5+)
|
|
||||||
COPY package.json package-lock.json ./
|
|
||||||
|
|
||||||
# Install app dependencies
|
# Install app dependencies
|
||||||
RUN set -x \
|
RUN set -x \
|
||||||
|
@ -3,6 +3,8 @@
|
|||||||
VERSION=`jq -r ".version" package.json`
|
VERSION=`jq -r ".version" package.json`
|
||||||
SERIES=${VERSION:0:4}-latest
|
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 .
|
sudo docker build -t zadam/trilium:$VERSION -t zadam/trilium:$SERIES .
|
||||||
|
|
||||||
if [[ $VERSION != *"beta"* ]]; then
|
if [[ $VERSION != *"beta"* ]]; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user