Dockerfile.ci 663 B

1234567891011121314151617181920
  1. FROM alpine:3.12
  2. ARG TARGETARCH=amd64
  3. ARG YQ_DOWNLOAD_ADDR=https://github.com/mikefarah/yq/releases/download/3.3.2/yq_linux_${TARGETARCH}
  4. ENV UID=1337 \
  5. GID=1337
  6. RUN echo "@edge_community http://dl-cdn.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories
  7. RUN apk add --no-cache ffmpeg su-exec ca-certificates olm@edge_community bash jq curl && \
  8. curl -sLo yq ${YQ_DOWNLOAD_ADDR} && \
  9. chmod +x yq && mv yq /usr/bin/yq
  10. ARG EXECUTABLE=./mautrix-whatsapp
  11. COPY $EXECUTABLE /usr/bin/mautrix-whatsapp
  12. COPY ./example-config.yaml /opt/mautrix-whatsapp/example-config.yaml
  13. COPY ./docker-run.sh /docker-run.sh
  14. VOLUME /data
  15. CMD ["/docker-run.sh"]