ARG VERSION_NGINX=1.13.6 ARG JBERET_UI_VERSIONA_ARG=f27fb499aea1232bec1ee8050cb995e37929b3eb FROM nginx:${VERSION_NGINX} ENV JBERET_UI_VERSION=${JBERET_UI_VERSIONA_ARG} #RUN apk add --update git nodejs python g++ make autoconf automake nasm # for alpine linux RUN apt-get update && apt-get install -y curl gnupg && curl -sL https://deb.nodesource.com/setup_9.x | bash - && apt-get install -y git nodejs python g++ make autoconf automake nasm RUN cd /tmp && git clone https://github.com/jberet/jsr352.git && cd jsr352 && git checkout ${JBERET_UI_VERSION} RUN cd /tmp/jsr352/jberet-ui && npm install && npm install -g gulp CMD /bin/sh -c "cd /tmp/jsr352/jberet-ui && gulp build && cp -r /tmp/jsr352/jberet-ui/dist/* /usr/share/nginx/html/ && nginx -g 'daemon off;'"