changed dockerfile to take an argument specifying which project to build
parent
97012189dc
commit
880cdf6885
|
@ -0,0 +1,2 @@
|
|||
dist
|
||||
node_modules
|
|
@ -7,8 +7,9 @@ COPY package*.json ./
|
|||
RUN npm install
|
||||
COPY . .
|
||||
ARG selene_env
|
||||
RUN npm run build-${selene_env}
|
||||
ARG application_name
|
||||
RUN npm run build-${selene_env} -- --project=${application_name}
|
||||
|
||||
# STAGE TWO: build the web server and copy the compiled angular app to it.
|
||||
FROM nginx:latest
|
||||
COPY --from=build /usr/src/app/dist/mycroft-marketplace /usr/share/nginx/html
|
||||
COPY --from=build /usr/src/app/dist/${application_name} /usr/share/nginx/html
|
Loading…
Reference in New Issue