1
0
Fork 0
mirror of https://github.com/SunRed/haste-server.git synced 2025-09-05 13:00:15 +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

View file

@ -1,12 +1,23 @@
node_modules
.vscode
.idea
.git
.github
.gitignore
.dockerignore
.eslintignore
.eslintrc.json
data
data-test
docs
test
*.swp
*.swo
*.DS_Store
npm-debug.log
static/*.min.js
config.js
static/application.min.js
config.js
Dockerfile
docker-compose.yml