-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile.fresh
42 lines (38 loc) · 990 Bytes
/
Dockerfile.fresh
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
31
32
33
34
35
36
37
38
39
40
41
42
FROM ubuntu:18.04
RUN set -ex && \
apt-get update && \
apt-get --no-install-recommends --yes install ca-certificates curl xz-utils libcap2-bin && \
apt-get clean && \
rm -rf /var/lib/apt
ARG node_ver=10
ENV node_var ${node_ver}
RUN curl -sL https://deb.nodesource.com/setup_${node_ver}.x | bash - && apt-get install -y nodejs
# install local dev version
WORKDIR /usr/src/app
#ADD *.js .
COPY config.js .
COPY daemon.js .
COPY get-uid.js .
COPY index.js .
COPY ini.js .
COPY lets_tcp.js .
COPY lib.js .
COPY lib.networkTest.js .
COPY modes/check-systemd.js modes/
COPY modes/client.js modes/
COPY modes/bw-test.js modes/
COPY modes/download-binaries.js modes/
COPY modes/fix-perms.js modes/
COPY modes/prequal.js modes/
COPY modes/status.js modes/
COPY lokinet.js .
COPY start.js .
COPY uid.js .
COPY web_api.js .
COPY src/lib/lib.exec.js src/lib/
COPY src/lib/lib.systemd.js src/lib/
# configure npm
COPY package.json .
RUN find .
# install the CLI utility
RUN npm i -g