Skip to content

Commit 12ff04e

Browse files
author
Tyler Smalley
authored
1 parent 4516c7a commit 12ff04e

File tree

1 file changed

+5
-1
lines changed
  • src/dev/build/tasks/os_packages/docker_generator/templates

1 file changed

+5
-1
lines changed

src/dev/build/tasks/os_packages/docker_generator/templates/Dockerfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@ RUN groupadd --gid 1000 kibana && \
8585
useradd --uid 1000 --gid 1000 \
8686
--home-dir /usr/share/kibana --no-create-home \
8787
kibana
88-
USER kibana
8988

9089
LABEL org.label-schema.build-date="{{dockerBuildDate}}" \
9190
org.label-schema.license="{{license}}" \
@@ -115,8 +114,13 @@ LABEL name="Kibana" \
115114
release="1" \
116115
summary="Kibana" \
117116
description="Your window into the Elastic Stack."
117+
118+
RUN mkdir /licenses && \
119+
cp LICENSE.txt /licenses/LICENSE
118120
{{/ubi}}
119121

122+
USER kibana
123+
120124
ENTRYPOINT ["/usr/local/bin/dumb-init", "--"]
121125

122126
CMD ["/usr/local/bin/kibana-docker"]

0 commit comments

Comments
 (0)