|
@@ -1,7 +1,7 @@
|
|
|
# on alpine with libc6-compat=1.1.24-r9:
|
|
|
# > Error relocating /usr/local/bin/ipfs: __fprintf_chk: symbol not found
|
|
|
# > Error relocating /usr/local/bin/ipfs: __vfprintf_chk: symbol not found
|
|
|
-FROM debian:buster-slim
|
|
|
+FROM debian:10.8-slim
|
|
|
|
|
|
ARG JQ_PACKAGE_VERSION=1.5+dfsg-2+b1
|
|
|
ARG TINI_PACKAGE_VERSION=0.18.0-1
|
|
@@ -30,7 +30,9 @@ RUN apt-get update \
|
|
|
&& apt-get clean \
|
|
|
&& rm -rf /var/lib/apt/lists \
|
|
|
&& mv /tmp/go-ipfs/ipfs /usr/local/bin \
|
|
|
- && rm -r /tmp/go-ipfs
|
|
|
+ && rm -r /tmp/go-ipfs \
|
|
|
+ && find / -xdev -type f -perm /u+s -exec chmod --changes u-s {} \; \
|
|
|
+ && find / -xdev -type f -perm /g+s -exec chmod --changes g-s {} \;
|
|
|
|
|
|
ENV IPFS_CONFIG_PATH="${IPFS_PATH}/config" \
|
|
|
IPFS_INIT_PROFILE=server \
|
|
@@ -49,3 +51,9 @@ EXPOSE 5001/tcp
|
|
|
# http gateway
|
|
|
EXPOSE 8080/tcp
|
|
|
CMD ["ipfs", "daemon"]
|
|
|
+
|
|
|
+# https://github.com/opencontainers/image-spec/blob/v1.0.1/annotations.md
|
|
|
+ARG REVISION=
|
|
|
+LABEL org.opencontainers.image.title="go-ipfs" \
|
|
|
+ org.opencontainers.image.source="https://github.com/fphammerle/docker-ipfs" \
|
|
|
+ org.opencontainers.image.revision="$REVISION"
|