TinyDockerfile 394 B

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