FROM alpine:edge LABEL maintainer="Andreas Peters " COPY ./ /home/node RUN echo http://nl.alpinelinux.org/alpine/edge/testing >> /etc/apk/repositories && \ apk add --no-cache git nodejs npm tini websockify && \ adduser -D -g 1001 -u 1001 -h /home/node node && \ mkdir -p /home/node && \ mkdir -p /home/node/.npm-global && \ mkdir -p /home/node/app && \ chown -R node: /home/node USER node ENV PATH=/home/node/.npm-global/bin:$PATH ENV NPM_CONFIG_PREFIX=/home/node/.npm-global RUN cd /home/node && \ npm install && \ npm run build USER root RUN apk del gcc git USER node EXPOSE 8080 ENV MUMBLE_SERVER=mumble.aventer.biz:64738 ENTRYPOINT ["/sbin/tini", "--"] CMD websockify --ssl-target --web /home/node/dist 8080 "$MUMBLE_SERVER"