This change adds 2 new files, DockerfileLight and DockerfileFull. This change also adds documentation to README.md for instructions on how to build and run the application in a docker container using the Dockerfile.
The dockerfiles base image is nginx:alpine-stable.
The DockerfileLight does not add any extra packages on top of nginx:alpine-stable.
It takes the completed dist files and adds them into the nginx directory.
The DockerfileFull adds nodejs and yarn to the nginx:alpine-stable image.
It takes the entire application, builds it using yarn, then copies the completed dist files and adds them to the nginx directory.
This allows someone without yarn installed to deploy the docker container.
This change adds 2 new files, DockerfileLight and DockerfileFull. This change also adds documentation to README.md for instructions on how to build and run the application in a docker container using the Dockerfile.
The dockerfiles base image is nginx:alpine-stable.
The DockerfileLight does not add any extra packages on top of nginx:alpine-stable. It takes the completed dist files and adds them into the nginx directory.
The DockerfileFull adds nodejs and yarn to the nginx:alpine-stable image. It takes the entire application, builds it using yarn, then copies the completed dist files and adds them to the nginx directory. This allows someone without yarn installed to deploy the docker container.