-
Notifications
You must be signed in to change notification settings - Fork 186
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
48 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
FROM node:16.20.1 AS builder-kbn-7.17.11 | ||
RUN npm install --global @bazel/bazelisk@1.10.1 | ||
USER node | ||
RUN git clone --depth 1 --branch v7.17.11 https://github.com/elastic/kibana /home/node/kbn | ||
RUN chown node.node /home/node/kbn | ||
|
||
WORKDIR /home/node/kbn | ||
RUN yarn kbn bootstrap | ||
RUN yarn config set registry http://host.docker.internal:4873 && \ | ||
sed -i 's/https:\/\/registry.yarnpkg.com/http:\/\/host.docker.internal:4873/g' yarn.lock | ||
RUN rm -rf /home/node/.cache/yarn && rm -rf /home/node/.cache/Cypress && rm -rf /home/node/.cache/ms-playwright | ||
RUN mkdir -p /home/node/kbn/data/wazuh/config | ||
|
||
FROM node:16.20.1 | ||
USER node | ||
COPY --from=builder-kbn-7.17.11 /home/node/ /home/node/ | ||
WORKDIR /home/node/kbn |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters