Skip to content

Commit 90d8da9

Browse files
committed
install and setup tzdata package
1 parent ff88c24 commit 90d8da9

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

linux/Dockerfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,13 @@ RUN apt-get update \
4242
unzip \
4343
wget
4444

45+
# install tzdata and reconfigure
46+
RUN ln -snf /usr/share/zoneinfo/$(curl -f https://ipapi.co/timezone) /etc/localtime \
47+
&& export DEBIAN_FRONTEND=noninteractive \
48+
&& apt-get update \
49+
&& apt-get install -y tzdata \
50+
&& dpkg-reconfigure --frontend noninteractive tzdata
51+
4552
# install gh cli
4653
RUN ARCH="$(arch | sed s/aarch64/arm64/ | sed s/x86_64/amd64/)" \
4754
&& curl -L -H "Accept: application/vnd.github+json" https://api.github.com/repos/cli/cli/releases/latest \

linux/scripts/entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ if [[ "$(service docker status)" == *"Docker is running"* ]]; then
2626
echo "Done!"
2727
else
2828
echo "Docker didn't start, status is:"
29-
echo $(service docker status)
29+
service docker status
3030
exit 1
3131
fi
3232

0 commit comments

Comments
 (0)