Dockerfile 724 Bytes
Newer Older
1
FROM maven:3.5.4 as builder
Escalante Martinez, Marisa's avatar
Escalante Martinez, Marisa committed
2 3

ARG GIT_CREDENTIALS
4 5 6 7
ARG ARTIFACTORY_USE
ARG ARTIFACTORY_USER
ARG ARTIFACTORY_PASSWORD
ARG ARTIFACTORY_MAVEN_REPO
8 9 10
ARG ACSMI_BACKEND_CLIENT_GIT_REF=ff5465b2b237808a420a2269a3a2471e13e31406
ARG OPTIMUS_GIT_REF=0a9d9f1b82a66dcd6c5094f47e3a5e245569aa58
ARG STATEMACHINE_GIT_REF=58410513540d5defccd3fe58198dec2d37de2596
11 12 13 14 15 16

ARG VERSION

COPY . /

RUN \
17 18 19
	chmod 750 /*.sh 

RUN \
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
	. /configartifactorymaven.sh && \
	python /processSourcesJson.py && \
	rm -rf /sources

FROM jetty:9.3.24-alpine

ENV USER_GIT=user
ENV TOKEN_GIT=password

COPY --from=builder /app.war /var/lib/jetty/webapps/ROOT.war

USER root
RUN  chown jetty:jetty /var/lib/jetty/webapps/ROOT.war
USER jetty

COPY /etc/decide /etc/decide