Add Dockerfile for building a Docker image

This commit is contained in:
Harald Nagel 2020-05-12 19:28:33 -07:00 committed by Marcel Schramm
parent 06de47a34c
commit 12677f545b
1 changed files with 12 additions and 0 deletions

12
Dockerfile Normal file
View File

@ -0,0 +1,12 @@
FROM golang:latest
WORKDIR /go/src/cordless
COPY . ./
RUN go build .
VOLUME ["/root/.config/cordless"]
ENTRYPOINT ["/go/src/cordless/cordless"]