Add Docker file
All checks were successful
continuous-integration/drone/push Build is passing

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