2020-06-23 16:40:05 +03:00
|
|
|
FROM alpine:3.12
|
2019-07-27 17:03:05 +03:00
|
|
|
|
2020-08-17 15:46:05 -06:00
|
|
|
ARG TARGETARCH=amd64
|
2020-08-18 11:54:11 +03:00
|
|
|
ARG YQ_DOWNLOAD_ADDR=https://github.com/mikefarah/yq/releases/download/3.3.2/yq_linux_${TARGETARCH}
|
2020-08-17 15:46:05 -06:00
|
|
|
|
2019-07-27 17:03:05 +03:00
|
|
|
ENV UID=1337 \
|
|
|
|
GID=1337
|
|
|
|
|
2020-05-08 23:53:30 +03:00
|
|
|
RUN echo "@edge_community http://dl-cdn.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories
|
2020-08-17 15:46:05 -06:00
|
|
|
RUN apk add --no-cache ffmpeg su-exec ca-certificates olm@edge_community bash jq curl && \
|
|
|
|
curl -sLo yq ${YQ_DOWNLOAD_ADDR} && \
|
|
|
|
chmod +x yq && mv yq /usr/bin/yq
|
2019-07-27 17:03:05 +03:00
|
|
|
|
2020-02-25 22:59:39 +02:00
|
|
|
ARG EXECUTABLE=./mautrix-whatsapp
|
|
|
|
COPY $EXECUTABLE /usr/bin/mautrix-whatsapp
|
2019-07-27 17:03:05 +03:00
|
|
|
COPY ./example-config.yaml /opt/mautrix-whatsapp/example-config.yaml
|
|
|
|
COPY ./docker-run.sh /docker-run.sh
|
|
|
|
VOLUME /data
|
|
|
|
|
|
|
|
CMD ["/docker-run.sh"]
|