Heroku git URL https://git.heroku.com/mercadolibre-apivue.git Domain Your app can be found at https://mercadolibre-apivue.herokuapp.com/
Dockerhub https://hub.docker.com/r/juanpa1997/apivue/
Install the Heroku CLI Download and install the Heroku CLI.
If you haven't already, log in to your Heroku account and follow the prompts to create a new SSH public key.
$ heroku login
Clone the repository Use Git to clone mercadolibre-apivue's source code to your local machine.
$ heroku git:clone -a mercadolibre-apivue$ cd mercadolibre-apivue
Deploy your changes Make some changes to the code you just cloned and deploy them to Heroku using Git.
$ git add .
$ git commit -am "make it better"
$ git push heroku master
Creamos en la carpeta raiz un archivo Dockerfile
FROM node:9.11.1-alpine
# install simple http server for serving static content
RUN npm install -g http-server
# make the 'app' folder the current working directory
WORKDIR /app
# copy both 'package.json' and 'package-lock.json' (if available)
COPY package*.json ./
# install project dependencies
RUN npm install
# copy project files and folders to the current working directory (i.e. 'app' folder)
COPY . .
# build app for production with minification
RUN npm run build
EXPOSE 8080
CMD [ "npm", "start" ]
$ build . -t "NAME IMAGE DOCKER"
$ Docker run -d -p 8080:"puerto del sercer" "NAME IMAGE DOCKER"
$ export DOCKER_ID_USER='##NAME USER DOCKERHUB'
$ Docker login
username:
password:
$ docker tag #NAMEIMAGEDOCKER username/NAMEIMAGEDOCKER
$ docker push username/NAMEIMAGEDOCKER
npm install
npm run serve
npm run build
npm run test
npm run lint