Dockerfile 618 Bytes
Newer Older
wenom64's avatar
wenom64 committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
FROM node:lts-alpine

# install simple http server for serving static content
RUN yarn global add --silent http-server

# install the vue-cli
RUN yarn global add --silent @vue/cli

# create app directory
RUN mkdir /app

# copy both 'package.json' and 'yarn.lock'
COPY package.json /app/
COPY yarn.lock /app/

# copy project files and folders to the current working directory (i.e. 'app' folder)
COPY . /app/

# make the 'app' folder the current working directory
WORKDIR /app

# install project dependencies
#RUN yarn install --production=false
RUN yarn install

# build the app
RUN yarn run build
#RUN yarn run serve