Skip to content

Instantly share code, notes, and snippets.

@wsdookadr
Created September 10, 2023 03:08
Show Gist options
  • Save wsdookadr/568d9eaab24b0dde4e6459fc761ce4c5 to your computer and use it in GitHub Desktop.
Save wsdookadr/568d9eaab24b0dde4e6459fc761ce4c5 to your computer and use it in GitHub Desktop.
docker setup template based on slackware image
. /etc/profile
slackpkg_unatt(){
slackpkg -batch=on -default_answer=y -orig_backups=off $@
}
sbopkg_unatt(){
local pkg=$1
/usr/sbin/sqg -p $pkg
yes $'Q\nY\nP\nC' | /usr/sbin/sbopkg -B -i $pkg
}
FROM vbatts/slackware:15.0
LABEL maintainer "Stefan Corneliu Petrea <stefan.petrea@gmail.com>"
RUN slackpkg update
COPY bashrc /root/.bashrc
RUN source ~/.bashrc && slackpkg_unatt install ca-certificates perl rsync lz4 cyrus-sasl curl zstd xxHash nghttp2 brotli gcc make binutils patch
RUN update-ca-certificates -f
RUN wget -O sbopkg.tgz https://github.com/sbopkg/sbopkg/releases/download/0.38.2/sbopkg-0.38.2-noarch-1_wsr.tgz
RUN upgradepkg --install-new sbopkg.tgz
RUN mkdir -p /var/lib/sbopkg/queues /var/lib/sbopkg/SBo/15.0
RUN sbopkg -r >/dev/null
RUN source ~/.bashrc && slackpkg_unatt install python3
RUN wget https://bootstrap.pypa.io/get-pip.py && python3 get-pip.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment