forked from perses/perses
-
Notifications
You must be signed in to change notification settings - Fork 0
/
distroless-debug.Dockerfile
26 lines (20 loc) · 1021 Bytes
/
distroless-debug.Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
FROM alpine AS build-env
RUN apk add --update --no-cache mailcap
RUN mkdir /perses
FROM gcr.io/distroless/static-debian11:debug
LABEL maintainer="The Perses Authors <[email protected]>"
USER nobody
COPY --chown=nobody:nobody perses /bin/perses
COPY --chown=nobody:nobody percli /bin/percli
COPY --chown=nobody:nobody LICENSE /LICENSE
COPY --chown=nobody:nobody cue/schemas/ /etc/perses/cue/schemas/
COPY --chown=nobody:nobody cue.mod/ /etc/perses/cue.mod/
COPY --chown=nobody:nobody docs/examples/config.docker.yaml /etc/perses/config.yaml
COPY --from=build-env --chown=nobody:nobody /perses /perses
COPY --from=build-env --chown=nobody:nobody /etc/mime.types /etc/mime.types
WORKDIR /perses
EXPOSE 8080
VOLUME ["/perses"]
ENTRYPOINT [ "/bin/perses" ]
CMD ["--config=/etc/perses/config.yaml", \
"--log.level=error"]