website-gemompel/Dockerfile

36 lines
797 B
Docker
Raw Normal View History

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