29 lines
869 B
Docker
29 lines
869 B
Docker
# docker build -t $DOCKER_BUILD_NAME \
|
|
# --build-arg="MVN_FINALNAME=$MVN_FINALNAME" \
|
|
# --build-arg="MVN_NAME=${MVN_NAME}" \
|
|
# --build-arg="CONTAINER_INI=${CONTAINER_INI}" \
|
|
# --build-arg="SMARTGEAR_IMAGE=${SMARTGEAR_IMAGE}" \
|
|
# --build-arg="PORT=${PORT}" \
|
|
# -f Dockerfile \
|
|
# $PLATFORMS .
|
|
|
|
ARG SMARTGEAR_IMAGE
|
|
|
|
FROM ${SMARTGEAR_IMAGE}
|
|
ARG CONTAINER_INI
|
|
ARG MVN_FINALNAME
|
|
ARG MVN_NAME
|
|
ARG PORT
|
|
|
|
COPY ./dockerize/configuration/logback.xml /etc/
|
|
COPY ./dockerize/configuration/*.gcubekey /tomcat/lib
|
|
|
|
COPY ./target/${MVN_FINALNAME}.war /usr/local/tomcat/webapps/
|
|
# In the case you have to copy a file inside the service directory
|
|
# the war must be unzipped .
|
|
# RUN unzip /target/${MVN_FINALNAME}.war -d /tomcat/webapps/${MVN_NAME}
|
|
|
|
COPY ${CONTAINER_INI} /etc/container.ini
|
|
|
|
EXPOSE ${PORT}
|