무민은귀여워

memo docker nuxt 본문

IT/기타

memo docker nuxt

moomini 2018. 10. 2. 19:15
반응형


Dockerfile


FROM node:10.11.0-alpine


RUN apk update && \

    apk add git && \

    npm install -g npm && \

    npm install -g vue-cli && \

    npm install -g nuxt && \

    npm install -g create-nuxt-app

ENV HOST 0.0.0.0


WORKDIR /app




docker-compose.yml


version: "3"

services: 

  web:

    build: 

      context: ./

    privileged: true

    volumes:

      - "./:/app"

    ports:

      - 3000:3000

    container_name: "nuxt"

    tty: true

반응형
Comments