diff --git a/app/Dockerfile b/app/Dockerfile index b725d2a..2aa09a4 100644 --- a/app/Dockerfile +++ b/app/Dockerfile @@ -46,8 +46,6 @@ RUN { \ VOLUME /var/www/html -ENV TZ=Asia/Seoul - COPY entrypoint_hidche_app.sh /usr/local/bin/ COPY id_ecdsa.key /var/www/.ssh/id_ecdsa COPY known_hosts /var/www/.ssh/known_hosts diff --git a/app/entrypoint_hidche_app.sh b/app/entrypoint_hidche_app.sh index d4a5724..78733b7 100755 --- a/app/entrypoint_hidche_app.sh +++ b/app/entrypoint_hidche_app.sh @@ -1,5 +1,5 @@ #!/bin/bash -set -uxo pipefail +set -euxo pipefail shopt -s nullglob ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone diff --git a/db/Dockerfile b/db/Dockerfile index 2c9a5be..9537671 100644 --- a/db/Dockerfile +++ b/db/Dockerfile @@ -1,9 +1,6 @@ FROM mariadb #ubuntu - -ENV TZ=Asia/Seoul - COPY entrypoint_hidche_db.sh /usr/local/bin/ ENTRYPOINT ["entrypoint_hidche_db.sh"]