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:
|
commands:
|
||||||
- go get github.com/pstuifzand/websub-hub/cmd/hubserver
|
- go get github.com/pstuifzand/websub-hub/cmd/hubserver
|
||||||
- go build github.com/pstuifzand/websub-hub/cmd/hubserver
|
- go build github.com/pstuifzand/websub-hub/cmd/hubserver
|
||||||
# publish:
|
|
||||||
# image: plugins/docker
|
publish:
|
||||||
# repo: registry.stuifzandapp.com/websub-hub
|
image: plugins/docker
|
||||||
# registry: registry.stuifzandapp.com
|
repo: registry.stuifzandapp.com/websub-hub
|
||||||
# secrets: [ docker_username, docker_password ]
|
registry: registry.stuifzandapp.com
|
||||||
|
secrets: [ docker_username, docker_password ]
|
||||||
|
|
||||||
# deploy:
|
# deploy:
|
||||||
# image: appleboy/drone-ssh
|
# image: appleboy/drone-ssh
|
||||||
# host: publog.stuifzandapp.com
|
# 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