2024-05-23 16:59:48 +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-20 15:06:50 +01:00
|
|
|
# --build-arg="SMARTGEAR_IMAGE=${SMARTGEAR_IMAGE}" \
|
|
|
|
# --build-arg="PORT=${PORT}" \
|
2024-05-24 14:19:55 +02:00
|
|
|
# -f Dockerfile \
|
2024-05-23 16:59:48 +02:00
|
|
|
# $PLATFORMS .
|
|
|
|
|
2024-05-27 16:04:24 +02:00
|
|
|
ARG SMARTGEAR_IMAGE
|
2024-02-21 11:44:41 +01:00
|
|
|
|
2024-05-27 16:04:24 +02:00
|
|
|
FROM ${SMARTGEAR_IMAGE}
|
2024-11-20 15:06:50 +01:00
|
|
|
ARG CONTAINER_INI
|
2024-05-23 16:59:48 +02:00
|
|
|
ARG MVN_FINALNAME
|
|
|
|
ARG MVN_NAME
|
2024-11-20 15:06:50 +01:00
|
|
|
ARG PORT
|
2024-02-21 11:44:41 +01:00
|
|
|
|
2024-05-24 14:19:55 +02:00
|
|
|
COPY ./dockerize/configuration/logback.xml /etc/
|
|
|
|
COPY ./dockerize/configuration/*.gcubekey /tomcat/lib
|
2024-11-20 15:06:50 +01:00
|
|
|
|
2024-11-21 16:54:19 +01:00
|
|
|
COPY ./target/${MVN_FINALNAME}.war /usr/local/tomcat/webapps/${MVN_NAME}.war
|
2024-11-20 15:06:50 +01:00
|
|
|
# In the case you have to copy a file inside the service directory
|
|
|
|
# the war must be unzipped .
|
2024-11-21 16:54:19 +01:00
|
|
|
# RUN unzip /target/${MVN_NAME}.war -d /tomcat/webapps/${MVN_NAME}
|
2024-11-20 15:06:50 +01:00
|
|
|
|
2024-05-22 15:47:21 +02:00
|
|
|
COPY ${CONTAINER_INI} /etc/container.ini
|
|
|
|
|
2024-11-20 15:06:50 +01:00
|
|
|
EXPOSE ${PORT}
|