forked from mautrix/imessage
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
27 additions
and
6 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 |
---|---|---|
@@ -1,16 +1,36 @@ | ||
FROM alpine:3.19 | ||
FROM registry.access.redhat.com/ubi9/ubi-minimal:latest | ||
|
||
ENV UID=1000 \ | ||
GID=1000 | ||
|
||
RUN apk add --no-cache ffmpeg su-exec ca-certificates bash jq curl yq olm | ||
RUN rpm -ivh https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm | ||
|
||
# Install dependencies using microdnf | ||
RUN microdnf install -y \ | ||
shadow-utils \ | ||
ca-certificates \ | ||
bash \ | ||
jq \ | ||
yq \ | ||
libolm \ | ||
curl \ | ||
&& microdnf clean all | ||
|
||
# ffmpeg \ | ||
# yq \ | ||
# olm \ | ||
# curl \ | ||
|
||
RUN curl -sSL https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64 -o /usr/bin/yq && chmod +x /usr/bin/yq | ||
|
||
ARG EXECUTABLE=./mautrix-imessage | ||
COPY $EXECUTABLE /usr/bin/mautrix-imessage | ||
COPY ./example-config.yaml /opt/mautrix-imessage/example-config.yaml | ||
COPY ./docker-run.sh /docker-run.sh | ||
VOLUME /data | ||
|
||
RUN ldd /usr/bin/mautrix-imessage | ||
# Ensure the entrypoint script is executable | ||
RUN chmod +x /docker-run.sh /usr/bin/mautrix-imessage | ||
|
||
VOLUME /data | ||
|
||
CMD ["/docker-run.sh"] |
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