Skip to content

Instantly share code, notes, and snippets.

@SimonLammer
Last active November 1, 2021 18:52
Show Gist options
  • Save SimonLammer/19eeba0e1b7fd554dc9c9c91f882c6f1 to your computer and use it in GitHub Desktop.
Save SimonLammer/19eeba0e1b7fd554dc9c9c91f882c6f1 to your computer and use it in GitHub Desktop.
Scientific python 3.9 container on rpi
FROM debian:10-slim
RUN apt-get update \
&& apt-get upgrade -y \
&& echo "deb http://deb.debian.org/debian testing non-free contrib main" >> /etc/apt/sources.list \
&& apt-get update \
&& apt-get install -y --no-install-recommends libcrypt1 \
&& apt-get install -y --no-install-recommends libc6 \
&& apt-get upgrade -y \
&& apt-get install -y --no-install-recommends \
python3 \
python3-setuptools \
python3-pip \
python3-lxml \
python3-numpy \
python3-pandas \
python3-scipy \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
#!/bin/sh
# I ran into problems on my rpi4 whilst building the docker image:
#
# sleep: cannot read realtime clock: Operation not permitted
# dpkg: error processing package libc6:armhf (--configure):
# installed libc6:armhf package post-installation script subprocess returned error exit status 1
# Errors were encountered while processing:
# libc6:armhf
#
# This can apparently be remedied by updating libseccomp to a version greater than 2.4.2
#
# References:
# - https://githubmemory.com/repo/tianon/docker-brew-ubuntu-core/issues/196
cd /tmp
wget http://ftp.debian.org/debian/pool/main/libs/libseccomp/libseccomp2_2.5.2-2_armhf.deb # chosen from https://packages.debian.org/sid/armhf/libseccomp2/download
sudo dpkg -i libseccomp2_2.5.2-2_armhf.deb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment