2025-08-01 00:22:29 +08:00
|
|
|
FROM ubuntu:24.04
|
|
|
|
|
2025-08-14 16:45:14 +08:00
|
|
|
RUN --mount=type=cache,target=/var/lib/apt/lists \
|
|
|
|
--mount=type=cache,target=/var/cache/apt \
|
|
|
|
set -eux; \
|
|
|
|
apt-get update; \
|
|
|
|
apt-get install -y --no-install-recommends ca-certificates; \
|
|
|
|
update-ca-certificates
|
|
|
|
|
2025-08-01 00:22:29 +08:00
|
|
|
WORKDIR /grafana
|
|
|
|
|
|
|
|
RUN mkdir -p "conf/provisioning/datasources" \
|
|
|
|
"conf/provisioning/dashboards" \
|
|
|
|
"conf/provisioning/notifiers" \
|
|
|
|
"conf/provisioning/plugins" \
|
|
|
|
"conf/provisioning/access-control" \
|
|
|
|
"conf/provisioning/alerting"
|
|
|
|
|
|
|
|
COPY conf/defaults.ini conf/defaults.ini
|
|
|
|
|
|
|
|
COPY public/emails public/emails
|
|
|
|
COPY public/views public/views
|
|
|
|
COPY public/dashboards public/dashboards
|
|
|
|
COPY public/app/plugins public/app/plugins
|
2025-08-29 23:29:57 +08:00
|
|
|
COPY public/gazetteer public/gazetteer
|
|
|
|
COPY public/maps public/maps
|
2025-08-01 00:22:29 +08:00
|
|
|
|
|
|
|
ADD devenv/frontend-service/build/grafana bin/grafana
|
|
|
|
|
|
|
|
COPY public/build/assets-manifest.json public/build/assets-manifest.json
|
|
|
|
|
2025-08-29 23:29:57 +08:00
|
|
|
ENTRYPOINT ["bin/grafana", "server"]
|