1
0
Fork 0
mirror of https://github.com/SunRed/haste-server.git synced 2025-09-06 05:20:14 +02:00

Make Docker image smaller and fix issue with ignore files

* Exclude a bunch of files and directories not needed for Docker image
* Exclude dev dependencies for Docker image build by introducing a production build script
* Using a different alpine base image and multi-stage build reduces the Docker image by roughly 35 MB alone
* Move babel to dev dependencies
* Fix highlight.min.js accidentally being ignored
This commit is contained in:
Manuel 2021-02-13 10:28:49 +01:00
parent 062bdb3dec
commit 3606db4d90
Signed by: Manuel
GPG key ID: 4085037435E1F07A
5 changed files with 479 additions and 72 deletions

3
.gitignore vendored
View file

@ -1,5 +1,6 @@
node_modules
.vscode
.idea
data
data-test
@ -8,5 +9,5 @@ data-test
*.DS_Store
npm-debug.log
static/*.min.js
static/application.min.js
config.js