Skip to content
Snippets Groups Projects
Commit c7dc8d15 authored by Homada.Boumedane's avatar Homada.Boumedane
Browse files

chore(dlcm-portal): dockerfile

update dockerfile
parent 22780eb1
No related branches found
No related tags found
No related merge requests found
ARG IMAGE_SRC
FROM ${IMAGE_SRC}
RUN rm -rf /usr/share/nginx/html/*
COPY nginx.conf /etc/nginx/nginx.conf
COPY ./dist/DLCM-Frontend/. /usr/share/nginx/html/yareta-test/portal/
COPY ./dist/DLCM-Frontend/. /usr/share/nginx/html/dlcm-test/portal/
RUN rm -rf /usr/share/nginx/html/dlcm-test/portal/assets/configurations/*
RUN rm -rf /usr/share/nginx/html/yareta-test/portal/assets/configurations/* && \
rm -rf /usr/share/nginx/html/dlcm-test/portal/assets/configurations/*
WORKDIR usr/share/nginx/html/dlcm-test/portal
RUN sed -i -- 's/<base href="\/portal\/">/<base href="\/dlcm-test\/portal\/">/g' index.html
WORKDIR usr/share/nginx/html/yareta-test/portal
RUN sed -i -- 's/<base href="\/portal\/">/<base href="\/yareta-test\/portal\/">/g' index.html
CMD ["nginx", "-g", "daemon off;"]
\ No newline at end of file
......@@ -13,6 +13,6 @@ angularWithMavenTemplate {
skipTests = false
skipCodeInspection = false
generateModels = true
webContextRoot='/dlcm-test/portal/'
webContextRoot='/portal/'
baseImage = 'nexus.unige.ch:445/nginx:alpine'
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment