Move BASE_URL to the build script
This commit is contained in:
+4
-1
@@ -5,6 +5,9 @@
|
||||
FROM node:alpine AS build-frontend
|
||||
WORKDIR /src
|
||||
|
||||
# Define base address
|
||||
ARG BASE_URL=/
|
||||
|
||||
# Install the angular CLI
|
||||
RUN npm install -g @angular/cli
|
||||
|
||||
@@ -18,7 +21,7 @@ RUN npm install
|
||||
COPY ./src/MistoxWebsite.Client/ ./
|
||||
|
||||
# Compile the source
|
||||
RUN ng build
|
||||
RUN ng build --base-href=${BASE_URL}
|
||||
|
||||
#####################
|
||||
## Build Backend ##
|
||||
|
||||
Reference in New Issue
Block a user