mirror of
https://github.com/slynn1324/tinypin.git
synced 2026-01-22 18:16:28 +00:00
updated build scripts
This commit is contained in:
parent
ea96135e0c
commit
59c07e8a43
3 changed files with 6 additions and 4 deletions
|
|
@ -4,8 +4,8 @@
|
|||
#only include these files
|
||||
!main.js
|
||||
!server
|
||||
!static
|
||||
!client
|
||||
!templates
|
||||
!package.json
|
||||
!package-lock.json
|
||||
!LICENSE
|
||||
!LICENSE
|
||||
|
|
|
|||
|
|
@ -16,4 +16,4 @@ RUN apk add build-base python3 && npm install --verbose && apk del build-base py
|
|||
|
||||
RUN mkdir /data && npm install
|
||||
|
||||
ENTRYPOINT ["sh", "-c" , "node server.js -i /data/images -d /data/tinypin.db"]
|
||||
ENTRYPOINT ["sh", "-c" , "node main.js -i /data/images -d /data/tinypin.db"]
|
||||
|
|
|
|||
|
|
@ -1,7 +1,9 @@
|
|||
#!/bin/sh
|
||||
|
||||
VERSION=$(git rev-parse --verify --short HEAD)
|
||||
|
||||
docker build \
|
||||
-t slynn1324/tinypin \
|
||||
--build-arg VERSION=$(git rev-parse --verify --short HEAD) \
|
||||
--build-arg VERSION=$VERSION \
|
||||
.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue