Skip to content

Commit 4f4a43f

Browse files
committed
Set correct permissions for files
1 parent 864c631 commit 4f4a43f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,16 @@ FROM eclipse-temurin:21.0.2_13-jre
1818
EXPOSE 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
2727
COPY --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

3232
HEALTHCHECK --interval=1m --timeout=5s \
3333
CMD curl --fail http://localhost:1888/actuator/health

0 commit comments

Comments
 (0)