Sign inSign up

chwzr/vapid-dev

By chwzr

•Updated over 6 years ago

A Vapid Development Docker Container. Ready to build a Production Container

Image
0

255

chwzr/vapid-dev repository overview

Docker Image CI

⁠VAPID DEV

You dont need NodeJs on your system! Vapid development in Docker Container!

  1. Create a empty Directory and cd to it.
mkdir /path/to/project
cd /path/to/project
  1. Create a Docker volume and bind it to that directory:
docker volume create --opt type=none --opt o=bind --name vapid --opt device="$(pwd)"
  1. Start vapid-dev container and have fun!
docker run --rm -it -v vapid:/opt/app-root/src/vapid -p 3000:3000 --name vapid vapid
  1. To build a Production Container serving a static build of your vapid app run following command in your project dir:
docker build -t vapid-prod .
  1. The production Container is ready to be used in Kubernetes or even on a single Docker-CE host. To make a test run, execute this and open (http://localhost:8080)[http://localhost:8080⁠]
docker run --rm -it -p 8080:80 vapid-prod

Tag summary

Content type

Image

Digest

Size

332.6 MB

Last updated

over 6 years ago

docker pull chwzr/vapid-dev