2024-05-27 11:17:12 +02:00
|
|
|
# docker build -t $DOCKER_BUILD_NAME \
|
|
|
|
# --build-arg="MVN_FINALNAME=$MVN_FINALNAME" \
|
|
|
|
# --build-arg="MVN_NAME=${MVN_NAME}" \
|
|
|
|
# --build-arg="CONTAINER_INI=${CONTAINER_INI}" \
|
2024-11-22 17:56:21 +01:00
|
|
|
# --build-arg="SMARTGEAR_IMAGE=${SMARTGEAR_IMAGE}" \
|
|
|
|
# --build-arg="PORT=${PORT}" \
|
2024-05-27 11:17:12 +02:00
|
|
|
# -f Dockerfile \
|
|
|
|
# $PLATFORMS .
|
|
|
|
|
2024-05-28 16:54:46 +02:00
|
|
|
ARG SMARTGEAR_IMAGE
|
2024-05-27 11:17:12 +02:00
|
|
|
|
2024-05-28 16:54:46 +02:00
|
|
|
FROM ${SMARTGEAR_IMAGE}
|
2024-11-22 17:56:21 +01:00
|
|
|
ARG CONTAINER_INI
|
2024-05-27 11:17:12 +02:00
|
|
|
ARG MVN_FINALNAME
|
|
|
|
ARG MVN_NAME
|
2024-11-22 17:56:21 +01:00
|
|
|
ARG PORT
|
2024-05-27 11:17:12 +02:00
|
|
|
|
|
|
|
COPY ./dockerize/configuration/logback.xml /etc/
|
|
|
|
COPY ./dockerize/configuration/*.gcubekey /tomcat/lib
|
2024-11-22 17:56:21 +01:00
|
|
|
|
|
|
|
COPY ./target/${MVN_FINALNAME}.war /usr/local/tomcat/webapps/${MVN_NAME}.war
|
|
|
|
# In the case you have to copy a file inside the service directory
|
|
|
|
# the war must be unzipped .
|
|
|
|
# RUN unzip /target/${MVN_NAME}.war -d /tomcat/webapps/${MVN_NAME}
|
|
|
|
|
2024-05-27 11:17:12 +02:00
|
|
|
COPY ${CONTAINER_INI} /etc/container.ini
|
|
|
|
|
2024-11-22 17:56:21 +01:00
|
|
|
EXPOSE ${PORT}
|