Skip to content

Commit

Permalink
#43 Parametrize scala version in docker
Browse files Browse the repository at this point in the history
  • Loading branch information
Zejnilovic committed Oct 20, 2023
1 parent fb6d986 commit 997e78e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,16 @@ ARG LDAP_SSL_CERTS_PATH
# ARG SSL_DNAME is defined below in the SSL-enabled image
# In case you build the Dockerfile from another location than the default 'service' dir, provide a prefix to reach it
ARG AS_PREFIX=.
# Version of scala that server was built against
ARG SCALA_VERSION=2.12

LABEL org.opencontainers.image.authors="ABSA"

# Copy Spring application properties
COPY $CONFIG /opt/application.yaml

# deploy as root application in tomcat
COPY ${AS_PREFIX}/target/scala-2.12/*.war /usr/local/tomcat/webapps/ROOT.war
COPY ${AS_PREFIX}/target/scala-${SCALA_VERSION}/*.war /usr/local/tomcat/webapps/ROOT.war

ENV SPRING_CONFIG_LOCATION=/opt/application.yaml

Expand Down

0 comments on commit 997e78e

Please sign in to comment.