forked from Telecominfraproject/wlan-cloud-loadsim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile-node
44 lines (32 loc) · 890 Bytes
/
Dockerfile-node
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
#Build stage 0
FROM erlang:alpine
RUN apk update && \
apk add --no-cache \
bash util-linux coreutils \
curl \
make cmake gcc g++ libstdc++ libgcc git \
zlib-dev && \
touch /usr/include/sys/vtimes.h
RUN mkdir /buildroot
WORKDIR /buildroot
RUN git clone https://github.com/telecominfraproject/wlan-cloud-loadsim
WORKDIR wlan-cloud-loadsim
RUN git pull
RUN make
RUN ./docker_config_node.sh
RUN mkdir /app_data
RUN mkdir /app_data/logs
#build stage 1
FROM alpine
RUN apk update && \
apk add --no-cache openssl && \
apk add --no-cache ncurses-libs && \
apk add --no-cache erlang && \
apk add --no-cache \
bash util-linux coreutils \
curl \
make cmake gcc g++ libstdc++ libgcc git \
zlib-dev && \
touch /usr/include/sys/vtimes.h
COPY --from=0 /buildroot/wlan-cloud-loadsim /owls
ENTRYPOINT /owls/docker_start_non_manager.sh