This repository has been archived on 2024-04-29. You can view files and clone it, but cannot push or open issues or pull requests.
node-fftcg/frontend/Dockerfile

22 lines
491 B
Docker
Raw Normal View History

2019-02-22 19:23:42 +00:00
FROM node:lts AS dev
# some dir for our code
WORKDIR /app
RUN yarn global add @vue/cli @vue/cli-service-global
# mount code
VOLUME ["/app"]
# this is how we start
CMD [ "vue", "ui", "--host", "0.0.0.0", "--port", "8080" ]
FROM node:lts AS build
# some dir for our code
WORKDIR /app
# install dependencies
COPY package*.json yarn*.lock ./
RUN yarn --production=false
# copy code
COPY . .
RUN yarn build
FROM nginx:stable-alpine AS prod
2019-05-28 09:06:57 +00:00
COPY --from=build /app/dist /usr/share/nginx/html