added docker related files/scripts
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Paul 2022-11-10 14:33:10 +01:00
parent fd08fe13fe
commit b06ab1c801
3 changed files with 20 additions and 0 deletions

9
Dockerfile Normal file
View File

@ -0,0 +1,9 @@
FROM debian:bullseye-slim
ADD dip /dip
RUN apt update -y && apt install -y ca-certificates && apt clean
ENTRYPOINT ["/dip","-port","8989"]
EXPOSE 8989/tcp

5
scripts/build_amd64.sh Executable file
View File

@ -0,0 +1,5 @@
#!/bin/bash
export GOARCH=amd64
go generate cmd/dip/dip.go
go build -mod=vendor cmd/dip/dip.go

6
scripts/docker.sh Executable file
View File

@ -0,0 +1,6 @@
#!/bin/sh
./scripts/build_amd64.sh
docker build -t dip:latest .
docker tag dip:latest registry.paulbsd.com/images/dip:latest
docker push registry.paulbsd.com/images/dip:latest