2018-07-23 14:31:00 +02:00
|
|
|
FROM alpine:edge
|
|
|
|
|
|
|
|
LABEL maintainer="Andreas Peters <support@aventer.biz>"
|
|
|
|
|
2018-07-23 17:38:30 +02:00
|
|
|
COPY ./ /home/node
|
|
|
|
|
2018-07-23 14:31:00 +02:00
|
|
|
RUN echo http://nl.alpinelinux.org/alpine/edge/testing >> /etc/apk/repositories && \
|
2018-07-23 17:38:30 +02:00
|
|
|
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
|
|
|
|
2018-07-23 17:38:30 +02:00
|
|
|
RUN cd /home/node && \
|
|
|
|
npm install && \
|
|
|
|
npm run build
|
2018-07-23 14:31:00 +02:00
|
|
|
|
2018-07-23 17:38:30 +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
|
|
|
|
2018-07-23 17:38:30 +02:00
|
|
|
USER node
|
2018-07-23 14:31:00 +02:00
|
|
|
|
2018-07-23 17:38:30 +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
|
|
|
|