diff --git a/Containerfile b/Containerfile new file mode 100644 index 0000000..b8f78bd --- /dev/null +++ b/Containerfile @@ -0,0 +1,15 @@ +FROM docker.io/library/golang:alpine AS build + +WORKDIR /src + +COPY go.mod go.sum ./ +RUN go mod download + +COPY . . +RUN go build -o /out/mrvc + +FROM docker.io/library/alpine + +COPY --from=build /out/mrvc /mrvc + +ENTRYPOINT ["/mrvc"] diff --git a/README.md b/README.md index 196f5e2..a86a21d 100644 --- a/README.md +++ b/README.md @@ -53,7 +53,7 @@ Version Support: ## Usage -Get a version of mrvc using either `go build` or nix. +Get a version of mrvc using either `go build`, nix or the Containerfile. Furthermore a Matrix account with its access token is required. One way to obtain the access token is by going into Element -> Settings -> "Help & About" and at the bottom under "Advanced" the access token can be copied.