File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -18,16 +18,16 @@ FROM eclipse-temurin:21.0.2_13-jre
1818EXPOSE 1888
1919
2020# download script for reading Docker secrets
21- RUN curl -o /tmp/read-secrets.sh " https://raw.githubusercontent.com/HSLdevcom/jore4-tools/main/docker/read-secrets.sh"
21+ ADD --chmod=755 https://raw.githubusercontent.com/HSLdevcom/jore4-tools/main/docker/read-secrets.sh /tmp/read-secrets.sh
2222
2323# copy over helper scripts
24- COPY ./script/build-jdbc-urls.sh /tmp/
24+ COPY --chmod=755 ./script/build-jdbc-urls.sh /tmp/
2525
2626# copy compiled jar from builder stage
2727COPY --from=builder /build/target/*.jar /usr/src/jore4-tiamat/jore4-tiamat.jar
2828
2929# read Docker secrets into environment variables and run application
30- CMD /bin/bash -c "source /tmp/read-secrets.sh && source /tmp/build-jdbc-urls.sh && java --add-opens java.base/java.lang=ALL-UNNAMED -jar /usr/src/jore4-tiamat/jore4-tiamat.jar"
30+ CMD [ " /bin/bash" , "-c" , "source /tmp/read-secrets.sh && source /tmp/build-jdbc-urls.sh && java --add-opens java.base/java.lang=ALL-UNNAMED -jar /usr/src/jore4-tiamat/jore4-tiamat.jar" ]
3131
3232HEALTHCHECK --interval=1m --timeout=5s \
3333 CMD curl --fail http://localhost:1888/actuator/health
You can’t perform that action at this time.
0 commit comments