go-gin-example

command module
v0.0.0-...-60ee8d1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 20, 2020 License: MIT Imports: 25 Imported by: 0

README

go-gin-example

learn demo

docker build -t gin-blog-docker .
docker run -p 8000:8000 gin-blog-docker

# 连接mysql
docker run --link mysql5.7:mysql5.7 -p 8000:8000 gin-blog-docker

scratch dockerfile


FROM scratch

WORKDIR $GOPATH/src/github.com/EDDYCJY/go-gin-example
COPY . $GOPATH/src/github.com/EDDYCJY/go-gin-example

EXPOSE 8000
CMD ["./go-gin-example"]


CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o go-gin-example .


docker build -t gin-blog-docker-scratch .

docker run --link mysql:mysql -p 8000:8000 gin-blog-docker-scratch

docker ps -as

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
middleware
jwt
pkg
e
api

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL