mirror of
https://dev.azure.com/hugendubel/ISA/_git/ISA-Frontend
synced 2025-12-28 22:42:11 +01:00
Merged PR 1134: Merge ISA 2.0 into Develop
Merge ISA 2.0 into Develop Related work items: #1098, #2592, #2630, #2633, #2635, #2639, #2706, #2707, #2813, #2818, #2825, #2843, #2846, #2847, #2848, #2851, #2852, #2853, #2897, #2900
This commit is contained in:
committed by
Andreas Schickinger
parent
91b3f44c1e
commit
f0cc76f180
20
Dockerfile
20
Dockerfile
@@ -1,5 +1,5 @@
|
||||
#stage 1
|
||||
FROM node:14 as node
|
||||
FROM node:14 as base
|
||||
ARG IS_PRODUCTION=false
|
||||
ARG SEMVERSION=1.0.0
|
||||
ARG BuildUniqueID
|
||||
@@ -11,9 +11,19 @@ RUN npm version ${SEMVERSION}
|
||||
RUN npm install --always-auth=false
|
||||
RUN if [ "${IS_PRODUCTION}" = "true" ] ; then npm run-script build-prod ; else npm run-script build ; fi
|
||||
|
||||
# stage 2
|
||||
FROM nginx:alpine
|
||||
# stage final
|
||||
FROM nginx:alpine as publish
|
||||
ARG BuildUniqueID
|
||||
LABEL build.uniqueid="${BuildUniqueID:-1}"
|
||||
COPY --from=node /app/dist/sales /usr/share/nginx/html
|
||||
COPY --from=node /app/nginx.conf /etc/nginx/conf.d/default.conf
|
||||
COPY --from=base /app/dist/isa-app /usr/share/nginx/html
|
||||
COPY --from=base /app/nginx.conf /etc/nginx/conf.d/default.conf
|
||||
|
||||
# stage npm test
|
||||
FROM base as test
|
||||
ARG BuildUniqueID
|
||||
LABEL build.uniqueid="${BuildUniqueID:-1}"
|
||||
RUN wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb -q -O /tmp/chrome.deb && apt update && apt install -y /tmp/chrome.deb
|
||||
# ignore exitcode, sonst gibts keinen container
|
||||
RUN npm test || true
|
||||
ENTRYPOINT [ "/bin/sleep", "60000" ]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user