Skip to content

Commit 6e52f7f

Browse files
authored
build(ci): add build deps to Dockerfile for arm64 native module compilation (#750)
1 parent 03ba06d commit 6e52f7f

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,11 @@ RUN echo 'http://dl-cdn.alpinelinux.org/alpine/edge/main' >> /etc/apk/repositori
4242

4343
# install @brightsec/cli from NPM
4444
RUN set -eux; \
45+
apk add --no-cache --virtual .build-deps python3 make g++ curl-dev && \
4546
npm i -g -q @brightsec/cli@${VERSION} && \
46-
NPM_CONFIG_PREFIX=/usr/local npm uninstall -g npm
47+
NPM_CONFIG_PREFIX=/usr/local npm uninstall -g npm && \
48+
apk del .build-deps && \
49+
apk add --no-cache libcurl
4750

4851
# set the directory and file permissions to allow users in the root group to access files
4952
# for details please refer to the doc at https://docs.openshift.com/container-platform/3.11/creating_images/guidelines.html#openshift-specific-guidelines

0 commit comments

Comments
 (0)