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"