This commit is contained in:
parent
34f7462b25
commit
daca1748e8
3 changed files with 13 additions and 1 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -1 +1,3 @@
|
|||
.idea/
|
||||
go-sample-webpage
|
||||
webapp
|
3
Dockerfile
Normal file
3
Dockerfile
Normal file
|
@ -0,0 +1,3 @@
|
|||
FROM scratch
|
||||
COPY webapp /webapp
|
||||
CMD ["/webapp", "run"]
|
7
Makefile
Normal file
7
Makefile
Normal file
|
@ -0,0 +1,7 @@
|
|||
build:
|
||||
GOOS=linux CGO_ENABLED=0 GOARCH=amd64 go build -ldflags="-w -s" -o ./webapp
|
||||
|
||||
init-dev:
|
||||
docker-compose up -d
|
||||
sleep 30
|
||||
go run ./ migrate
|
Loading…
Reference in a new issue