Skip to content

Commit

Permalink
add Dockerfile
Browse files Browse the repository at this point in the history
To keep things consistent with other mautrix-xxx bridges
  • Loading branch information
dvcrn committed Oct 26, 2024
1 parent 78e302a commit e4f972a
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions Dockerfile
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"]

0 comments on commit e4f972a

Please sign in to comment.