go-skype-bridge/Dockerfile

22 lines
540 B
Docker
Raw Normal View History

2021-10-27 12:18:35 +03:00
FROM golang:1-alpine3.14 AS builder
2020-09-08 07:02:17 +03:00
2021-10-27 12:18:35 +03:00
RUN apk add --no-cache git ca-certificates build-base su-exec olm-dev
2020-09-08 07:02:17 +03:00
COPY . /build
WORKDIR /build
RUN go build -o /usr/bin/matrix-skype
2021-10-27 12:18:35 +03:00
FROM alpine:3.14
2020-09-08 07:02:17 +03:00
ENV UID=1337 \
GID=1337
2021-10-27 12:18:35 +03:00
RUN apk add --no-cache ffmpeg su-exec ca-certificates olm bash jq yq curl
2020-09-08 07:02:17 +03:00
COPY --from=builder /usr/bin/matrix-skype /usr/bin/matrix-skype
COPY --from=builder /build/example-config.yaml /opt/matrix-skype/example-config.yaml
COPY --from=builder /build/docker-run.sh /docker-run.sh
VOLUME /data
CMD ["/docker-run.sh"]