Skip to content

Commit 5ce9ff3

Browse files
Joonas HiltunenJontzii
authored andcommitted
Set correct permissions for files
1 parent fc5ff79 commit 5ce9ff3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@ FROM eclipse-temurin:25.0.1_8-jre
2020
EXPOSE 8080
2121

2222
# download script for reading docker secrets
23-
ADD https://raw.githubusercontent.com/HSLdevcom/jore4-tools/main/docker/read-secrets.sh /app/scripts/read-secrets.sh
23+
ADD --chmod=755 https://raw.githubusercontent.com/HSLdevcom/jore4-tools/main/docker/read-secrets.sh /app/scripts/read-secrets.sh
2424

2525
# copy over compiled jar
2626
COPY --from=builder /build/target/*.jar /usr/src/jore4-auth/auth-backend.jar
2727

2828
# read docker secrets into environment variables and run application
29-
CMD /bin/bash -c "source /app/scripts/read-secrets.sh && java -jar /usr/src/jore4-auth/auth-backend.jar"
29+
CMD ["/bin/bash", "-c", "source /app/scripts/read-secrets.sh && java -jar /usr/src/jore4-auth/auth-backend.jar"]
3030

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

0 commit comments

Comments
 (0)