# base image
FROM nunopreguica/sd2122tpbase

# working directory inside docker image
WORKDIR /home/sd

# copy the jar created by assembly to the docker image
COPY target/*jar-with-dependencies.jar sd2122.jar

# copy the file of properties to the docker image
COPY trab.props trab.props

CMD ["java", "--add-opens", "java.base/java.lang=ALL-UNNAMED", "-cp", "/home/sd/sd2122.jar", "sd2122.aula5.server.soap.SoapUsersServer"]
