mirror of
https://github.com/slynn1324/tinypin.git
synced 2026-01-23 02:25:08 +00:00
added version arg and env parm
This commit is contained in:
parent
9385a61fea
commit
de0e944c86
2 changed files with 14 additions and 1 deletions
|
|
@ -1,5 +1,13 @@
|
|||
FROM node:alpine3.12
|
||||
|
||||
LABEL maintainer="slynn1324@gmail.com"
|
||||
|
||||
ARG VERSION
|
||||
|
||||
LABEL tinypin-version=$VERSION
|
||||
|
||||
ENV TINYPIN_VERSION=$VERSION
|
||||
|
||||
COPY . /tinypin
|
||||
|
||||
WORKDIR /tinypin
|
||||
|
|
|
|||
|
|
@ -1,2 +1,7 @@
|
|||
#!/bin/sh
|
||||
docker build -t slynn1324/tinypin .
|
||||
|
||||
docker build \
|
||||
-t slynn1324/tinypin \
|
||||
--build-arg VERSION=$(git rev-parse --verify --short HEAD) \
|
||||
.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue