Streamline Dockerfile for caching and size

Move package installation to top of file to enable layer caching
in Docker. Use multi stage builds to reduce final image size.
Ignore everything but essential files when creating Docker build
context.
This commit is contained in:
Joakim Fors
2020-06-18 12:40:08 +02:00
parent 6ff4cae9b9
commit 6b96f224ae
2 changed files with 57 additions and 29 deletions

View File

@@ -1,7 +1,6 @@
.git
docs/_build
node_modules
test_data
light
config.json
*.mbtiles
*
!src
!public
!package.json
!package-lock.json
!run.sh