mirror of
https://github.com/slynn1324/tinypin.git
synced 2026-01-23 02:25:08 +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
|
#only include these files
|
||||||
!main.js
|
!main.js
|
||||||
!server
|
!server
|
||||||
!static
|
!client
|
||||||
!templates
|
!templates
|
||||||
!package.json
|
!package.json
|
||||||
!package-lock.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
|
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
|
#!/bin/sh
|
||||||
|
|
||||||
|
VERSION=$(git rev-parse --verify --short HEAD)
|
||||||
|
|
||||||
docker build \
|
docker build \
|
||||||
-t slynn1324/tinypin \
|
-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