Dockerfile39 lines · 811 chars FROM ubuntu:22.04
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
ca-certificates \
curl \
git \
unzip \
build-essential \
pkg-config \
libpng-dev \
libjpeg-dev \
zlib1g-dev \
libtiff5-dev \
libwebp-dev \
libxslt1-dev \
libxml2-dev \
python3 \
python3-pip \
nodejs \
npm \
&& rm -rf /var/lib/apt/lists/*
# Working directory for the build
WORKDIR /work
# Copy source code into the image
COPY . /work
# Initialize git submodules and build SVGO (Linux-friendly; skip macOS pngout flow)
RUN git submodule update --init --recursive && \
make -C svgo all
# Provide an interactive shell as default command
ENTRYPOINT ["/bin/bash"]
CMD ["-l"]