thisissoon / FM-Frontend-API

A node js middle layer between FM Frontend and FM API
1 stars 0 forks source link

Feature: docker #33

Closed jamesjwarren closed 9 years ago

jamesjwarren commented 9 years ago

Initial dockerfile and compose config.

jamesjwarren commented 9 years ago

@edwardoparearyee the issue you were having should now be resolved. I've configured the app to run with foreverjs in production which will ensure it restarts if it crashes. It also provides the option to restart on file changes in development, you can run this locally with forever -w app.js.

I've also added image building and jshint tests in circle. I will add some more documentation to the README.

edoparearyee commented 9 years ago

Working for me now :+1:

jamesjwarren commented 9 years ago

@krak3n built with an alpine base and optomised deps, gets the total image size down to ~580 mb from ~860 mb

krak3n commented 9 years ago

I'm still surprised at that large image size. TBSeen DMS has more build dependencies with a much smaller image size.

Can you make sure .git is int the .dockerignore.

Also once you have rebuilt try a docker history on the image, it will show you the layers, what they did and the size of the layer. I'm just curious as to what adds to the size.

krak3n commented 9 years ago

Lets Get This Merged!