hello-world-service/Dockerfile

32 lines
1.2 KiB
Docker
Raw Normal View History

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}" \
# --build-arg="JAVA_VERSION=${JAVA_VERSION}" \
# --build-arg="SMARTGEARS_VERSION=${SMARTGEARS_VERSION}" \
# -f Dockerfile \
2024-05-23 16:59:48 +02:00
# $PLATFORMS .
2024-05-27 16:04:24 +02:00
# ARG JAVA_VERSION
# ARG SMARTGEARS_VERSION
# ARG TOMCAT_VERSION
ARG SMARTGEAR_IMAGE
2024-02-21 11:44:41 +01:00
2024-05-22 15:47:21 +02:00
#FROM d4science/smartgears-distribution:${SMARTGEARS_VERSION}-java${JAVA_VERSION}-tomcat10.1.19
2024-05-27 16:04:24 +02:00
# 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"
2024-05-23 16:59:48 +02:00
ARG MVN_FINALNAME
ARG MVN_NAME
2024-05-24 16:34:54 +02:00
2024-05-23 16:59:48 +02:00
#FROM smartgears-distribution:${SMARTGEARS_VERSION}-java${JAVA_VERSION}-tomcat10.1.19
2024-02-21 11:44:41 +01:00
COPY ./dockerize/configuration/logback.xml /etc/
COPY ./dockerize/configuration/*.gcubekey /tomcat/lib
2024-11-20 12:31:05 +01:00
COPY ./target/${MVN_FINALNAME}.war /usr/local/tomcat/webapps/
# RUN unzip /target/${MVN_FINALNAME}.war -d /tomcat/webapps/${MVN_NAME}
2024-05-22 15:47:21 +02:00
COPY ${CONTAINER_INI} /etc/container.ini
EXPOSE 8080