From 2d081d99f0b7373acce76ff7aeece898a777b38f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn-Michael=20Miehe?= Date: Sat, 5 Sep 2020 01:47:48 +0200 Subject: [PATCH] Docker Image --- docker-compose.yml | 11 +++++++++++ docker/Dockerfile | 13 +++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 docker-compose.yml create mode 100644 docker/Dockerfile 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" ]