-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8738ad1
commit 64b0bdc
Showing
2 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# docker 打包 | ||
|
||
打包需要的文件如下 | ||
``` | ||
├── Dockerfile | ||
├── dst-admin-go | ||
├── run.sh | ||
``` | ||
|
||
**打包** | ||
``` | ||
docker build -t dst-admin-go . | ||
``` | ||
|
||
**运行** | ||
``` | ||
dcoker run -d -p8082:8082 dst-admin-go | ||
``` | ||
等看到 docker logs 说明启动成功了 | ||
|
||
```text | ||
[GIN-debug] GET /favicon.ico --> github.com/gin-gonic/gin.(*RouterGroup).StaticFile.func1 (6 handlers) | ||
[GIN-debug] HEAD /favicon.ico --> github.com/gin-gonic/gin.(*RouterGroup).StaticFile.func1 (6 handlers) | ||
[GIN-debug] GET /asset-manifest.json --> github.com/gin-gonic/gin.(*RouterGroup).StaticFile.func1 (6 handlers) | ||
[GIN-debug] HEAD /asset-manifest.json --> github.com/gin-gonic/gin.(*RouterGroup).StaticFile.func1 (6 handlers) | ||
[GIN-debug] GET / --> github.com/gin-gonic/gin.(*RouterGroup).StaticFile.func1 (6 handlers) | ||
[GIN-debug] HEAD / --> github.com/gin-gonic/gin.(*RouterGroup).StaticFile.func1 (6 handlers) | ||
[GIN-debug] [WARNING] You trusted all proxies, this is NOT safe. We recommend you to set a value. | ||
Please check https://pkg.go.dev/github.com/gin-gonic/gin#readme-don-t-trust-all-proxies for details. | ||
[GIN-debug] Listening and serving HTTP on :8082 | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters