initial commit 2

This commit is contained in:
Senad Uka
2018-04-25 13:16:36 +02:00
parent c1520d169c
commit 99c10b75fb
167 changed files with 25057 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
# Dockerfile
## Definitions
There are two `Dockerfile`s, one for each step of execution set in
the [definitions document][definitions-doc].
## Containers
- Build
Defined in `Dockerfile.build`
Has installed every program that is needed to build the code.
Gets the source, install the dependencies and makes the final binary
of our app.
The reason for us to have a container just for the building process is
that it demands lots of programs and dependencies to set up the Go
environment and build everything, which aren't needed in the server for
our app to run. Without it, the container for the running process would
be huge, full of useless binaries and softwares.
- Run
Defined in `Dockerfile.run`
This is the container that will run in the servers. Contains nothing,
but our app and what it need to make it run.
[definitions-doc]: https://bitbucket.org/nemt/nemt-portal-api/blob/master/docs/wiki/01%20-%20Definitions.md