FROM ubuntu:jammy-20260217
# Build s3fs from source using autotools
ENV DEBIAN_FRONTEND=noninteractive
RUN set -eux; \
apt-get update; \
apt-get install -y --no-install-recommends \
build-essential \
autoconf \
automake \
libtool \
pkg-config \
libcurl4-openssl-dev \
libxml2-dev \
libfuse3-dev \
ca-certificates \
libssl-dev; \
rm -rf /var/lib/apt/lists/*
# Build from source
WORKDIR /src
COPY . /src
RUN set -eux; \
./autogen.sh; \
./configure --with-openssl; \
make -j"$(nproc)"; \
make install
# Default command to run when container starts
CMD ["s3fs","--version"]
# Ignore git, and common irrelevant artifacts .git .gitignore build/ node_modules/ bundle/ dist/ *.o *.a *.so *.log *.tmp *.swp *.swo
Concerns: Runtime dependency on FUSE (fuse3) may be missing; the image installs libfuse3-dev but not fuse3 runtime package, which could prevent s3fs from functioning beyond version reporting., The base image tag ubuntu:jammy-20260217 is a dated tag that may not be available or reliable across environments, potentially causing pull failures. Smoke [PASS]: command -v s3fs >/dev/null 2>&1 && s3fs --version Smoke [PASS]: ls -l /usr/local/bin/s3fs 2>/dev/null || ls -l /usr/bin/s3fs 2>/dev/null Smoke [PASS]: ldd /usr/local/bin/s3fs 2>/dev/null | head -n 1 || ldd /usr/bin/s3fs 2>/dev/null | head -n 1