added docker related files/scripts
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
fd08fe13fe
commit
b06ab1c801
9
Dockerfile
Normal file
9
Dockerfile
Normal 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
5
scripts/build_amd64.sh
Executable 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
6
scripts/docker.sh
Executable 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
|
Loading…
Reference in New Issue
Block a user