commit 2d081d99f0b7373acce76ff7aeece898a777b38f Author: Jörn-Michael Miehe Date: Sat Sep 5 01:47:48 2020 +0200 Docker Image diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..0e70b56 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,11 @@ +version: "2" + +services: + dev: + build: ./docker + restart: "no" + volumes: + - "${PWD}:/srv/vue/lenaisten_bday" + ports: + - 8000:8000 + - 8080:8080 \ No newline at end of file diff --git a/docker/Dockerfile b/docker/Dockerfile new file mode 100644 index 0000000..6c29afb --- /dev/null +++ b/docker/Dockerfile @@ -0,0 +1,13 @@ +FROM node:lts-alpine +LABEL maintainer="joern-michael.miehe@lenaisten.de" + +WORKDIR /srv/vue + +RUN set -ex; \ + yarn global add @vue/cli + +USER node + +VOLUME [ "/home/node" ] + +CMD [ "vue", "ui", "-H", "0.0.0.0" ]