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:
parent
062bdb3dec
commit
3606db4d90
5 changed files with 479 additions and 72 deletions
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue