forked from Azure/iot-edge-opc-proxy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
44 lines (39 loc) · 944 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
FROM alpine:3.7
RUN set -ex \
&& \
apk add --update --no-cache --virtual .build-deps \
bash \
cmake \
build-base \
gcc \
abuild \
binutils \
make \
linux-headers \
libc-dev \
libressl-dev \
curl-dev \
zlib-dev
ADD / /proxy_build
RUN set -ex \
&& \
bash /proxy_build/bld/build.sh -C Release --skip-unittests --use-zlog \
&& \
mv /proxy_build/build/cmake/Release/bin/* /usr/bin \
&& \
mv /proxy_build/build/cmake/Release/libwebsockets/lib/* /usr/lib \
&& \
mv /proxy_build/build/cmake/Release/lib/* /usr/lib \
&& \
rm -rf /proxy_build
RUN set -ex \
&& \
apk del .build-deps \
&& \
apk add --update --no-cache --virtual .run-deps \
bash \
curl \
libressl \
zlib \
ca-certificates
ENTRYPOINT ["proxyd"]