Add linter config and Dockerfile
This commit is contained in:
13
Dockerfile
Normal file
13
Dockerfile
Normal file
@@ -0,0 +1,13 @@
|
||||
FROM golang:alpine AS builder
|
||||
|
||||
LABEL maintainer="vladimir@hodakov.me"
|
||||
|
||||
COPY . /src
|
||||
|
||||
RUN cd /src && go build ./cmd/deconnect
|
||||
|
||||
FROM docker.io/alpine
|
||||
|
||||
COPY --from=builder /src/deconnect /bin/deconnect
|
||||
VOLUME /etc/deconnect.yaml
|
||||
ENTRYPOINT [ "/bin/deconnect" ]
|
||||
Reference in New Issue
Block a user