Added scripts to pass version when building docker image

This commit is contained in:
Alejandro Celaya
2020-03-05 13:37:07 +01:00
parent 8e1c6908c6
commit 4a6dd66ecd
3 changed files with 15 additions and 2 deletions

View File

@@ -1,6 +1,8 @@
FROM node:12.14.1-alpine as node
COPY . /shlink-web-client
RUN cd /shlink-web-client && npm install && npm run build
ARG VERSION="latest"
ENV VERSION ${VERSION}
RUN cd /shlink-web-client && npm install && npm run build -- ${VERSION} --no-dist
FROM nginx:1.17.7-alpine
LABEL maintainer="Alejandro Celaya <alejandro@alejandrocelaya.com>"