bday2020/ui/docker/Dockerfile
2020-09-07 15:29:02 +02:00

28 lines
559 B
Docker

FROM node:lts-alpine
LABEL maintainer="joern-michael.miehe@lenaisten.de"
# vue services directory
WORKDIR /srv/vue
# install vue cli
RUN set -ex; \
yarn global add @vue/cli
# user setup
ARG NONROOT_UID=1000
ARG NONROOT_GID=1000
# recycle node user
RUN set -ex; \
deluser --remove-home node; \
addgroup -g ${NONROOT_GID} node; \
adduser --disabled-password --gecos '' --uid "${NONROOT_UID}" --ingroup node node
# user change
USER node
# persistent home directory
VOLUME [ "/home/node" ]
# run vue ui
CMD [ "vue", "ui", "-H", "0.0.0.0" ]