new base image

This commit is contained in:
kongfei 2022-06-14 21:22:03 +08:00
parent ba0cbe0081
commit e7469b926d
2 changed files with 3 additions and 5 deletions

View File

@ -1,14 +1,14 @@
FROM ubuntu:22.10
RUN echo 'hosts: files dns' >> /etc/nsswitch.conf
RUN apk add --no-cache iputils ca-certificates net-snmp-tools procps lm_sensors tzdata su-exec libcap wget tar libc6-compat file && \
update-ca-certificates
RUN set -ex && \
mkdir -p /usr/bin /etc/categraf
COPY conf /etc/categraf/conf
COPY categraf /usr/bin/categraf
COPY conf /etc/categraf/conf
COPY entrypoint.sh /entrypoint.sh
CMD ["/entrypoint.sh"]

View File

@ -1,8 +1,6 @@
FROM --platform=$BUILDPLATFORM ubuntu:22.10
RUN echo 'hosts: files dns' >> /etc/nsswitch.conf
RUN apk add --no-cache iputils ca-certificates net-snmp-tools procps lm_sensors tzdata su-exec libcap wget tar libc6-compat file && \
update-ca-certificates
RUN set -ex && \
mkdir -p /usr/bin /etc/categraf