Dockerfile 837 B

12345678910111213141516171819202122232425262728293031
  1. FROM bitnami/mariadb:10.3
  2. USER root
  3. RUN mv /etc/apt/sources.list /etc/apt/sources.list.bak
  4. COPY buster.sources.list /etc/apt/sources.list
  5. RUN apt-get update && \
  6. apt-get install -y curl git unzip vim wget && \
  7. apt-get install -y locales kde-l10n-zhcn && \
  8. apt-get clean && \
  9. rm -rf /var/lib/apt/lists/*
  10. RUN sed -i 's/# zh_CN.UTF-8 UTF-8/zh_CN.UTF-8 UTF-8/g' /etc/locale.gen
  11. RUN locale && locale-gen "zh_CN.UTF-8"
  12. # Set environment variables.
  13. ENV LANG=zh_CN.UTF-8 \
  14. LANGUAGE=zh_CN:zh:en_US:en \
  15. LC_ALL=zh_CN.UTF-8 \
  16. TZ=Asia/Shanghai \
  17. DEBIAN_FRONTEND="noninteractive" \
  18. TERM=xterm
  19. RUN ln -fs /usr/share/zoneinfo/$TZ /etc/localtime && \
  20. echo $TZ > /etc/timezone && \
  21. dpkg-reconfigure --frontend noninteractive tzdata && \
  22. dpkg-reconfigure --frontend noninteractive locales
  23. USER 1001