Make server 12-factor compatible. (#3546)

* Docker

* Herokuize

* Use mysql method with database_url

* cleanup
This commit is contained in:
Rob Blanckaert 2019-02-03 12:58:54 -08:00 committed by ctrlaltca
parent 5a4f020196
commit 544c66edde
2 changed files with 33 additions and 5 deletions

View file

@ -7,18 +7,16 @@ RUN apt-get update && apt-get install -y\
git\
libprotobuf-dev\
libqt5sql5-mysql\
libqt5websockets5-dev\
protobuf-compiler\
qt5-default\
qtbase5-dev\
qttools5-dev-tools\
qttools5-dev\
software-properties-common
qttools5-dev
COPY . /home/servatrice/code/
WORKDIR /home/servatrice/code
RUN mkdir oracle
WORKDIR build
RUN cmake .. -DWITH_SERVER=1 -DWITH_CLIENT=0 -DWITH_ORACLE=0 &&\
make &&\
@ -28,4 +26,4 @@ WORKDIR /home/servatrice
EXPOSE 4747
ENTRYPOINT [ "servatrice" ]
CMD [ "servatrice", "--log-to-console" ]