File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -24,16 +24,16 @@ RUN apt-get update \
2424 && rm -rf /var/lib/apt/lists/*
2525
2626# download script for reading Docker secrets
27- RUN curl -o /tmp/read-secrets.sh " https://raw.githubusercontent.com/HSLdevcom/jore4-tools/main/docker/read-secrets.sh"
27+ ADD --chmod=755 https://raw.githubusercontent.com/HSLdevcom/jore4-tools/main/docker/read-secrets.sh /tmp/read-secrets.sh
2828
2929# add helper script for constructing JDBC URL
30- COPY ./scripts/build-jdbc-urls.sh /tmp/build-jdbc-urls.sh
30+ COPY --chmod=755 ./scripts/build-jdbc-urls.sh /tmp/build-jdbc-urls.sh
3131
3232# copy compiled jar from builder stage
3333COPY --from=builder /build/target/*.jar /usr/src/jore4-map-matching/jore4-map-matching.jar
3434
3535# read Docker secrets into environment variables and run application
36- CMD /bin/bash -c "source /tmp/read-secrets.sh && source /tmp/build-jdbc-urls.sh && java -jar /usr/src/jore4-map-matching/jore4-map-matching.jar"
36+ CMD [ " /bin/bash" , "-c" , "source /tmp/read-secrets.sh && source /tmp/build-jdbc-urls.sh && java -jar /usr/src/jore4-map-matching/jore4-map-matching.jar" ]
3737
3838HEALTHCHECK --interval=1m --timeout=5s \
3939 CMD curl --fail http://localhost:8080/actuator/health
You can’t perform that action at this time.
0 commit comments