resource-manager/Dockerfile

29 lines
879 B
Docker
Raw Permalink Normal View History

# 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}" \
# -f Dockerfile \
# $PLATFORMS .
2024-05-28 16:54:46 +02:00
ARG SMARTGEAR_IMAGE
2024-05-28 16:54:46 +02:00
FROM ${SMARTGEAR_IMAGE}
2024-11-22 17:56:21 +01:00
ARG CONTAINER_INI
ARG MVN_FINALNAME
ARG MVN_NAME
2024-11-22 17:56:21 +01:00
ARG PORT
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}
COPY ${CONTAINER_INI} /etc/container.ini
2024-11-22 17:56:21 +01:00
EXPOSE ${PORT}