Dockerfile 358 B

123456789101112
  1. FROM alpine:3.5
  2. RUN apk add --no-cache cmake gcc g++ musl-dev python py-pip py-six make && rm -rf /var/cache/apk/*
  3. ADD . /tmp/open62541
  4. WORKDIR /tmp/open62541/build
  5. RUN pip install six
  6. RUN cmake -DUA_ENABLE_AMALGAMATION=true \
  7. -DBUILD_SHARED_LIBS=true \
  8. /tmp/open62541
  9. RUN make -j
  10. RUN cp *.h /usr/include/ && \
  11. cp bin/*.so /usr/lib