updated build scripts

This commit is contained in:
slynn1324 2021-10-04 16:16:56 -05:00
parent ea96135e0c
commit 59c07e8a43
3 changed files with 6 additions and 4 deletions

View file

@ -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

View file

@ -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"]

View file

@ -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 \
. .