Skip to content

Instantly share code, notes, and snippets.

@mricon
Last active September 9, 2021 21:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mricon/046ba7c8b03bd92176dbe83e04f2466c to your computer and use it in GitHub Desktop.
Save mricon/046ba7c8b03bd92176dbe83e04f2466c to your computer and use it in GitHub Desktop.
public-inbox toolbox container
# Podman/Toolbox container for public-inbox
FROM docker.io/library/debian
LABEL com.github.containers.toolbox="true" \
com.github.debarshiray.toolbox="true"
RUN apt-get update && \
apt-get -y install sudo libcap2-bin locales vim \
git liburi-perl libemail-mime-perl libplack-perl libtimedate-perl \
libdbd-sqlite3-perl libsearch-xapian-perl libnet-server-perl \
libinline-c-perl libemail-address-xs-perl libparse-recdescent-perl \
xapian-tools libencode-perl libdbi-perl liblinux-inotify2-perl \
libio-compress-perl curl libmail-imapclient-perl libsocket-msghdr-perl \
sqlite3 libgit2-dev make eatmydata man-db pkg-config
# Change this to your locale
RUN echo "en_CA.UTF-8 UTF-8" >> /etc/locale.gen && \
locale-gen && \
sed -i -e 's/ ALL$/ NOPASSWD:ALL/' /etc/sudoers && \
touch /etc/localtime && \
echo VARIANT_ID=container >> /etc/os-release
RUN git clone https://public-inbox.org /usr/local/public-inbox && \
cd /usr/local/public-inbox && \
perl Makefile.PL && \
make && \
make install && \
make clean
CMD /bin/bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment