-
Notifications
You must be signed in to change notification settings - Fork 8
/
Dockerfile
27 lines (23 loc) · 902 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
ARG ALPINE_VERSION
FROM libreofficedocker/alpine:${ALPINE_VERSION}
RUN --mount=type=bind,target=/tmp/buildfs,source=buildfs \
<<EOT
cd /tmp/buildfs
./install-unoserver.sh
EOT
# https://github.com/socheatsok78/s6-overlay-installer
ARG S6_OVERLAY_VERSION=v3.1.5.0
ARG S6_OVERLAY_INSTALLER=main/s6-overlay-installer.sh
RUN sh -c "$(curl -fsSL https://raw.githubusercontent.com/socheatsok78/s6-overlay-installer/${S6_OVERLAY_INSTALLER})"
# unoserver-rest-api
ARG TARGETOS
ARG TARGETARCH
ARG UNOSERVER_REST_API_VERSION
ARG UNOSERVER_REST_API_RELEASE_URL=https://github.com/libreofficedocker/unoserver-rest-api/releases/download/${UNOSERVER_REST_API_VERSION}
ADD ${UNOSERVER_REST_API_RELEASE_URL}/unoserver-rest-api-${TARGETOS}-${TARGETARCH} /usr/bin/unoserver-rest-api
RUN chmod +x /usr/bin/unoserver-rest-api
EXPOSE 2004
# RootFS
ADD rootfs /
ENTRYPOINT ["/init-shim"]
CMD [ "/docker-cmd.sh" ]