mirror of
https://gitee.com/kennylee/docker.git
synced 2024-11-29 18:38:34 +08:00
39 lines
1.2 KiB
Docker
Executable File
39 lines
1.2 KiB
Docker
Executable File
FROM bitnami/prometheus:2.28.0
|
|
|
|
MAINTAINER kennylee <kennylee26@gmail.com>
|
|
|
|
USER root
|
|
|
|
RUN mv /etc/apt/sources.list /etc/apt/sources.list.bak
|
|
COPY buster.sources.list /etc/apt/sources.list
|
|
|
|
RUN apt-get update && \
|
|
apt-get install -y curl git unzip vim wget && \
|
|
apt-get install -y locales kde-l10n-zhcn && \
|
|
apt-get clean && \
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
RUN sed -i 's/# zh_CN.UTF-8 UTF-8/zh_CN.UTF-8 UTF-8/g' /etc/locale.gen
|
|
|
|
RUN locale && locale-gen "zh_CN.UTF-8"
|
|
|
|
# Set environment variables.
|
|
ENV LANG=zh_CN.UTF-8 \
|
|
LANGUAGE=zh_CN:zh:en_US:en \
|
|
LC_ALL=zh_CN.UTF-8 \
|
|
TZ=Asia/Shanghai \
|
|
DEBIAN_FRONTEND="noninteractive" \
|
|
TERM=xterm
|
|
|
|
RUN ln -fs /usr/share/zoneinfo/$TZ /etc/localtime && \
|
|
echo $TZ > /etc/timezone && \
|
|
dpkg-reconfigure --frontend noninteractive tzdata && \
|
|
dpkg-reconfigure --frontend noninteractive locales
|
|
|
|
USER 1001
|
|
|
|
EXPOSE 9090
|
|
|
|
# CMD [ "--config.file=/opt/bitnami/prometheus/conf/prometheus.yml", "--storage.tsdb.path=/opt/bitnami/prometheus/data", "--web.console.libraries=/opt/bitnami/prometheus/conf/console_libraries", "--web.console.templates=/opt/bitnami/prometheus/conf/consoles" ]
|
|
|