Skip to content

Instantly share code, notes, and snippets.

@Jamp
Last active April 16, 2018 22:44
Show Gist options
  • Save Jamp/5daac2ee0590604de97e5b7935db7a3c to your computer and use it in GitHub Desktop.
Save Jamp/5daac2ee0590604de97e5b7935db7a3c to your computer and use it in GitHub Desktop.
Dockerfile para construir aplicaciones VueJS
FROM node:8.9.4-alpine
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
COPY ./src/package.json /usr/src/app
RUN yarn
COPY ./src/. /usr/src/app/
RUN yarn global add http-server
RUN yarn run build
EXPOSE 2000
CMD ["cd", "dist", "&&", "hs", "-p", "2000"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment