Add Docker file
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Kekskurse 2021-11-09 13:16:59 +01:00
parent 34f7462b25
commit daca1748e8
Signed by: kekskurse
GPG Key ID: 728ACCB59341E7E4
3 changed files with 13 additions and 1 deletions

4
.gitignore vendored
View File

@ -1 +1,3 @@
.idea/
.idea/
go-sample-webpage
webapp

3
Dockerfile Normal file
View File

@ -0,0 +1,3 @@
FROM scratch
COPY webapp /webapp
CMD ["/webapp", "run"]

7
Makefile Normal file
View 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