forked from NeuraLegion/bright-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
30 lines (23 loc) · 1016 Bytes
/
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
27
28
29
30
FROM node:14-alpine as base
ARG VERSION
LABEL org.opencontainers.image.vendor="NeuraLegion"
LABEL org.opencontainers.image.title="Repeater"
LABEL org.opencontainers.image.source="git@github.com:NeuraLegion/nexploit-cli.git"
LABEL org.opencontainers.image.url="https://github.com/NeuraLegion/nexploit-cli"
LABEL org.opencontainers.image.authors="Arten Derevnjuk <artem.derevnjuk@neuralegion.com>"
LABEL org.opencontainers.image.version="$VERSION"
# a few environment variables to make NPM installs easier
# good colors for most applications
ENV TERM xterm
# avoid million NPM install messages
ENV npm_config_loglevel warn
# allow installing when the main user is root
ENV npm_config_unsafe_perm true
RUN echo "whoami: $(whoami)"
RUN npm config -g set user $(whoami)
# add libraries needed to build os-service
RUN apk add --no-cache --virtual .build-deps make gcc g++ python3 \
&& npm i -g -q @neuralegion/nexploit-cli@${VERSION} \
&& apk del .build-deps
ENTRYPOINT [ "nexploit-cli" ]
CMD ["repeater"]