# Modified by the Noite project on 2026-11-10 under the Apache License 2.0: every name in it says Noite instead of the product it grew from (identifiers, files, strings, URLs).
FROM docker.io/clickhouse/clickhouse-server:26.10.3@sha256:739e099abd1157390960a59e4532d21781d8fde57e6e4151cb920ea02c30b1ce
COPY --chmod=0644 clickhouse/config.d/noite.xml /etc/clickhouse-server/config.d/noite.xml
COPY --chmod=0644 clickhouse/users.d/noite.xml /etc/clickhouse-server/users.d/noite.xml
COPY --chmod=0644 clickhouse/schema.sql /etc/ac/schema.sql
COPY --chmod=0755 clickhouse/start.sh /usr/local/bin/ac-clickhouse
RUN chmod 0755 /etc/ac /etc/clickhouse-server/users.d
ENV CLICKHOUSE_SKIP_USER_SETUP=1
CMD ["/usr/local/bin/ac-clickhouse"]
ENTRYPOINT []
