Split dist file creation and version replacing from main build script

This commit is contained in:
Alejandro Celaya
2022-02-27 20:10:10 +01:00
parent 82f8636af5
commit c088259e46
7 changed files with 61 additions and 49 deletions

View File

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