Skip to content

Commit 03951b1

Browse files
author
Joonas Hiltunen
committed
Set correct permissions for files
1 parent 407b07e commit 03951b1

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,16 @@ RUN apt-get update && apt-get install -y curl
2222
EXPOSE 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
3131
COPY --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

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

0 commit comments

Comments
 (0)