Skip to content
Snippets Groups Projects
Commit 8f84b68f authored by Benguria Elguezabal, Gorka's avatar Benguria Elguezabal, Gorka
Browse files

add the possibility to specify an external CA, to cover the case of the development environment

parent 73461a2d
No related branches found
No related tags found
No related merge requests found
......@@ -12,5 +12,9 @@ FROM openjdk:11-jdk-slim
WORKDIR /urbanite-dashboard-controller
COPY --from=builder /home/app/target/*.jar /urbanite-dashboard-controller/app.jar
ARG EXTRA_CA_URL
RUN /bin/bash -c "[ -z $EXTRA_CA_URL ] || ( curl $EXTRA_CA_URL --output /ca.pem && keytool -import -noprompt -trustcacerts -alias ca -file /ca.pem -cacerts -storepass changeit )"
# to check if ca is installed keytool -list -cacerts -alias ca --storepass changeit
EXPOSE 8080
ENTRYPOINT ["java","-jar","app.jar"]
\ No newline at end of file
ENTRYPOINT ["java","-jar","app.jar"]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment