From 8dcefcee6d9cdc1a298b12dbbd70190ae4654595 Mon Sep 17 00:00:00 2001 From: ManjaroOne666 Date: Sun, 24 Feb 2019 22:07:20 +0000 Subject: [PATCH] update --- app/Dockerfile | 12 ++++++++++++ docker-compose.yml | 11 +++++++++++ 2 files changed, 23 insertions(+) create mode 100644 app/Dockerfile create mode 100644 docker-compose.yml diff --git a/app/Dockerfile b/app/Dockerfile new file mode 100644 index 0000000..01b2ad9 --- /dev/null +++ b/app/Dockerfile @@ -0,0 +1,12 @@ +FROM node + +ENV APP_ROOT /src + +RUN mkdir ${APP_ROOT} +WORKDIR ${APP_ROOT} +ADD . ${APP_ROOT} + +RUN npm install +RUN npm run build + +# ENV HOST 0.0.0.0 diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..d6aaa09 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,11 @@ +version: "3" + +services: + nuxt: + build: ./app/ + container_name: marcleopold-website + restart: always + ports: + - "3003:3000" + command: + "npm run start"