Skip to content

Instantly share code, notes, and snippets.

@liyuntao
Last active September 21, 2023 10:41
Show Gist options
  • Save liyuntao/af7805861d63e5ec94ae9f3216d66916 to your computer and use it in GitHub Desktop.
Save liyuntao/af7805861d63e5ec94ae9f3216d66916 to your computer and use it in GitHub Desktop.
FROM bellsoft/liberica-openjdk-alpine-musl:21
# RUN rm -f /etc/apk/repositories \
# && echo "http://mirrors.ustc.edu.cn/alpine/v3.18/main/" >> /etc/apk/repositories \
# && echo "http://mirrors.ustc.edu.cn/alpine/v3.18/community/" >> /etc/apk/repositories
# add tzdata
RUN apk add --no-cache tzdata \
fontconfig ttf-dejavu \
&& rm -rf /var/cache/apk/*
ENV TZ=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment