Dockerfile41 lines · 929 chars # Auto-generated Dockerfile to build s3fs from source
FROM ubuntu:22.04
# Non-interactive APT in build
ENV DEBIAN_FRONTEND=noninteractive
# Install build dependencies (cover common SSL/libcurl options and FUSE)
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
build-essential \
autoconf \
automake \
libtool \
pkg-config \
ca-certificates \
libattr1-dev \
libxml2-dev \
libcurl4-openssl-dev \
libssl-dev \
libgnutls28-dev \
nettle-dev \
libfuse3-dev \
fuse \
wget \
&& rm -rf /var/lib/apt/lists/*
# Create and set workdir for source
WORKDIR /src
# Copy source code into the image
COPY . .
# Build and install from source
RUN ./autogen.sh \
&& ./configure --prefix=/usr \
&& make -j$(nproc) \
&& make install
# Default command shows help
CMD ["s3fs", "--version"]