32 lines
1.2 KiB
Docker
32 lines
1.2 KiB
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="JAVA_VERSION=${JAVA_VERSION}" \
|
|
# --build-arg="SMARTGEARS_VERSION=${SMARTGEARS_VERSION}" \
|
|
# -f Dockerfile \
|
|
# $PLATFORMS .
|
|
|
|
# ARG JAVA_VERSION
|
|
# ARG SMARTGEARS_VERSION
|
|
# ARG TOMCAT_VERSION
|
|
|
|
ARG SMARTGEAR_IMAGE
|
|
|
|
#FROM d4science/smartgears-distribution:${SMARTGEARS_VERSION}-java${JAVA_VERSION}-tomcat10.1.19
|
|
# FROM hub.dev.d4science.org/gcube/smartgears-distribution:${SMARTGEARS_VERSION}-java${JAVA_VERSION}-tomcat{TOMCAT_VERSION}
|
|
FROM ${SMARTGEAR_IMAGE}
|
|
ARG CONTAINER_INI="./dockerize/configuration/container.ini"
|
|
ARG MVN_FINALNAME
|
|
ARG MVN_NAME
|
|
|
|
#FROM smartgears-distribution:${SMARTGEARS_VERSION}-java${JAVA_VERSION}-tomcat10.1.19
|
|
|
|
COPY ./dockerize/configuration/logback.xml /etc/
|
|
COPY ./dockerize/configuration/*.gcubekey /tomcat/lib
|
|
COPY ./target/${MVN_FINALNAME}.war /usr/local/tomcat/webapps/
|
|
# RUN unzip /target/${MVN_FINALNAME}.war -d /tomcat/webapps/${MVN_NAME}
|
|
COPY ${CONTAINER_INI} /etc/container.ini
|
|
|
|
EXPOSE 8080
|