add dockerfile

This commit is contained in:
Andreas Peters 2018-07-23 14:31:00 +02:00
parent 434504435c
commit e9cebd38ad

20
Dockerfile Normal file
View file

@ -0,0 +1,20 @@
FROM alpine:edge
LABEL maintainer="Andreas Peters <support@aventer.biz>"
RUN echo http://nl.alpinelinux.org/alpine/edge/testing >> /etc/apk/repositories && \
apk add --no-cache git nodejs npm tini websockify
COPY ./ /opt/mumble-web/
WORKDIR /opt/mumble-web
RUN npm install && npm run build
EXPOSE 80
ENV MUMBLE_SERVER=mumble.aventer.biz:64738
ENTRYPOINT ["/sbin/tini", "--"]
CMD websockify --ssl-target --web /opt/mumble-web/dist 80 "$MUMBLE_SERVER"