Dockerized

This commit is contained in:
2022-06-11 23:45:12 +07:00
parent a0db97f96a
commit 7ec708e081
3 changed files with 25 additions and 0 deletions

View File

@@ -10,5 +10,10 @@
"dotenv": "^16.0.1",
"express": "^4.18.1",
"serve-index": "^1.9.1"
},
"scripts": {
"start": "node index.js",
"docker-build": "docker build . -t ghcr.io/yuzuzensai/simplestaticexpress:latest",
"docker-run": "docker run -d --name SimpleStaticExpress --mount type=bind,source=\"$(pwd)\"/public,target=/home/node/app/public --network host --env-file .env ghcr.io/yuzuzensai/simplestaticexpress:latest"
}
}