Skip to content

Commit

Permalink
docker support
Browse files Browse the repository at this point in the history
  • Loading branch information
sebbalex committed Aug 8, 2019
1 parent ac57d0a commit d3782a9
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM golang:1.12.6

WORKDIR /go/src/pc-web-validator
COPY ./src/ .

RUN go get -d -v ./...
RUN go install -v ./...
RUN go build -o main

CMD ["./main"]
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,14 @@ $ curl -XPOST localhost:5000/pc/validate -d '{
"publiccodeYmlVersion": "0.2"
}'
```
## Docker support

This project can be packaged and executed using Docker as follow:

```sh
$ docker build -t pc-web-validator .
$ docker run -p5000:5000 --name pc-web-validator -it --rm pc-web-validator
```


## Contributing
Expand Down

0 comments on commit d3782a9

Please sign in to comment.