Add Dockerfile to build docker image for hubserver
This commit is contained in:
parent
a1f1af55a1
commit
0f55fb2305
12
.drone.yml
12
.drone.yml
|
@ -4,11 +4,13 @@ pipeline:
|
|||
commands:
|
||||
- go get github.com/pstuifzand/websub-hub/cmd/hubserver
|
||||
- go build github.com/pstuifzand/websub-hub/cmd/hubserver
|
||||
# publish:
|
||||
# image: plugins/docker
|
||||
# repo: registry.stuifzandapp.com/websub-hub
|
||||
# registry: registry.stuifzandapp.com
|
||||
# secrets: [ docker_username, docker_password ]
|
||||
|
||||
publish:
|
||||
image: plugins/docker
|
||||
repo: registry.stuifzandapp.com/websub-hub
|
||||
registry: registry.stuifzandapp.com
|
||||
secrets: [ docker_username, docker_password ]
|
||||
|
||||
# deploy:
|
||||
# image: appleboy/drone-ssh
|
||||
# host: publog.stuifzandapp.com
|
||||
|
|
4
Dockerfile
Normal file
4
Dockerfile
Normal file
|
@ -0,0 +1,4 @@
|
|||
FROM ubuntu
|
||||
ADD ./hubserver /usr/local/bin
|
||||
EXPOSE 80
|
||||
ENTRYPOINT ["/usr/local/bin/hubserver"]
|
Loading…
Reference in New Issue
Block a user