added version arg and env parm

This commit is contained in:
slynn1324 2021-01-25 11:52:17 -06:00
parent 9385a61fea
commit de0e944c86
2 changed files with 14 additions and 1 deletions

View file

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

View file

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