PhlexPlexico / G5V

A front-end for G5API to manage matches/seasons/tournaments for CS:GO
MIT License
56 stars 29 forks source link

Add Dockerfiles #48

Closed ebuttonsdude closed 3 years ago

ebuttonsdude commented 3 years ago

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.