mumble-web/Dockerfile

36 lines
797 B
Text
Raw Normal View History

2018-07-23 14:31:00 +02:00
FROM alpine:edge
LABEL maintainer="Andreas Peters <support@aventer.biz>"
COPY ./ /home/node
2018-07-23 14:31:00 +02:00
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
2018-07-23 14:31:00 +02:00
RUN cd /home/node && \
npm install && \
npm run build
2018-07-23 14:31:00 +02:00
USER root
2018-07-23 14:31:00 +02:00
2020-03-20 16:23:45 +01:00
RUN apk del gcc git
2018-07-23 14:31:00 +02:00
USER node
2018-07-23 14:31:00 +02:00
EXPOSE 8080
2018-07-23 14:31:00 +02:00
ENV MUMBLE_SERVER=mumble.aventer.biz:64738
ENTRYPOINT ["/sbin/tini", "--"]
2020-04-02 00:02:54 +02:00
CMD websockify --ssl-target --web=/home/node/dist 8080 "$MUMBLE_SERVER"
2018-07-23 14:31:00 +02:00