Updated readme with Docker image building instructions

This commit is contained in:
Josh Komoroske 2018-03-06 10:54:35 -08:00
parent 76c0b2925f
commit a1a8acbc84

View File

@ -24,18 +24,9 @@ go test
Build the docker image with the following commands: Build the docker image with the following commands:
``` ```
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -tags netgo
docker build -t appleboy/drone-ssh . docker build -t appleboy/drone-ssh .
``` ```
Please note incorrectly building the image for the correct x64 linux and with
GCO disabled will result in an error when running the Docker image:
```
docker: Error response from daemon: Container command
'/bin/drone-ssh' not found or does not exist..
```
## Usage ## Usage
Execute from the working directory: Execute from the working directory: