-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
To keep things consistent with other mautrix-xxx bridges
- Loading branch information
Showing
1 changed file
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
FROM golang:1-alpine3.20 AS builder | ||
|
||
RUN apk add --no-cache git ca-certificates build-base su-exec olm-dev | ||
|
||
COPY . /build | ||
WORKDIR /build | ||
|
||
RUN go build -o /usr/bin/mautrix-slack ./cmd/mautrix-slack | ||
|
||
FROM alpine:3.20 | ||
|
||
ENV UID=1337 \ | ||
GID=1337 | ||
|
||
RUN apk add --no-cache ffmpeg su-exec ca-certificates olm bash jq yq-go curl | ||
|
||
COPY --from=builder /usr/bin/mautrix-slack /usr/bin/mautrix-slack | ||
COPY --from=builder /build/docker-run.sh /docker-run.sh | ||
VOLUME /data | ||
|
||
CMD ["/docker-run.sh"] |