File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -22,16 +22,16 @@ RUN apt-get update && apt-get install -y curl
2222EXPOSE 8080
2323
2424# download script for reading Docker secrets
25- ADD https://raw.githubusercontent.com/HSLdevcom/jore4-tools/main/docker/read-secrets.sh /tmp/read-secrets.sh
25+ ADD --chmod=755 https://raw.githubusercontent.com/HSLdevcom/jore4-tools/main/docker/read-secrets.sh /tmp/read-secrets.sh
2626
2727# copy over helper scripts
28- COPY ./script/build-jdbc-urls.sh /tmp/
28+ COPY --chmod=755 ./script/build-jdbc-urls.sh /tmp/
2929
3030# copy compiled jar from builder stage
3131COPY --from=builder /build/target/*.jar /usr/src/jore4-timetables/jore4-timetables.jar
3232
3333# read Docker secrets into environment variables and run application
34- CMD /bin/bash -c "source /tmp/read-secrets.sh && source /tmp/build-jdbc-urls.sh && java -jar /usr/src/jore4-timetables/jore4-timetables.jar"
34+ CMD [ " /bin/bash" , "-c" , "source /tmp/read-secrets.sh && source /tmp/build-jdbc-urls.sh && java -jar /usr/src/jore4-timetables/jore4-timetables.jar" ]
3535
3636HEALTHCHECK --interval=1m --timeout=5s \
3737 CMD curl --fail http://localhost:8080/actuator/health
You can’t perform that action at this time.
0 commit comments