trying to fix docker build, so it includes git sha info.

This commit is contained in:
Jason Kulatunga
2022-05-26 23:44:13 -07:00
parent d7ddf01ea0
commit c7c55ab95c
6 changed files with 26 additions and 23 deletions
+4 -5
View File
@@ -10,16 +10,15 @@ RUN go mod vendor && \
########
FROM node:lts-slim as frontendbuild
ARG GIT_VERSION=""
ENV
#reduce logging, disable angular-cli analytics for ci environment
ENV NPM_CONFIG_LOGLEVEL=warn NG_CLI_ANALYTICS=false
WORKDIR /opt/scrutiny/src
COPY . /opt/scrutiny/src
COPY webapp/frontend /opt/scrutiny/src
RUN apt-get update && apt-get install -y git && \
cd webapp/frontend && \
npm install -g @angular/cli@9.1.4 && \
RUN npm install -g @angular/cli@9.1.4 && \
mkdir -p /opt/scrutiny/dist && \
npm install && \
npm run build:prod -- --output-path=/opt/scrutiny/dist