1
- FROM raspbian/stretch as raspbian-bullseye
2
-
3
- # ##############################################################################
4
- # Upgrade to bullseye from stretch
5
- # ##############################################################################
6
-
7
- RUN apt-get update \
8
- && apt-get upgrade -y \
9
- && apt-get full-upgrade -y \
10
- && apt-get autoremove --purge -y \
11
- && apt-get clean -y \
12
- # Switch to bullseye repository.
13
- && sed -i 's/stretch/bullseye/g' /etc/apt/sources.list \
14
- # Update all packages.
15
- && apt-get update \
16
- && apt-get upgrade -y \
17
- && apt-get full-upgrade -y \
18
- && apt-get autoremove --purge -y \
19
- && apt-get clean -y
20
-
1
+ FROM --platform=linux/arm/v7 dtcooper/raspberrypi-os:bullseye
21
2
22
3
# ##############################################################################
23
4
# Install prereqs
24
5
# ##############################################################################
25
- # Setup nodejs policy for npm
26
- RUN apt-cache policy nodejs
27
6
RUN apt-get update -qq \
28
7
&& apt-get -y install \
29
8
git \
@@ -36,85 +15,24 @@ RUN apt-get update -qq \
36
15
python3.9 \
37
16
python3-dev \
38
17
python3-pip \
18
+ python3-venv \
39
19
build-essential \
40
20
# For PPAs
41
21
software-properties-common \
42
22
apt-transport-https \
43
23
ca-certificates \
44
24
&& apt-get clean
45
25
46
-
47
- # Override python with python3
48
- RUN update-alternatives --install /usr/bin/python python /usr/bin/python3 10
49
-
50
- # Install libs for pythons
51
- RUN sudo apt-get install build-essential checkinstall -y
52
- RUN sudo apt-get install libreadline-gplv2-dev libncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev -y
53
-
54
26
# ##############################################################################
55
27
# Python/AWS CLI
56
28
# ##############################################################################
57
- RUN python -m pip install --upgrade setuptools virtualenv \
58
- && python -m pip install --upgrade awscli \
29
+ RUN python3 -m pip install --upgrade setuptools virtualenv \
30
+ && python3 -m pip install --upgrade awscli \
59
31
&& ln -s `find /opt -name aws` /usr/local/bin/aws \
60
32
&& which aws \
61
33
&& aws --version
62
34
63
35
64
-
65
- # ##############################################################################
66
- # Install Python3.6 for Deployment
67
- # ##############################################################################
68
- WORKDIR /tmp
69
- RUN wget https://www.python.org/ftp/python/3.6.0/Python-3.6.0.tgz \
70
- && tar zxf Python-3.6.0.tgz \
71
- && cd Python-3.6.0 \
72
- && ./configure \
73
- && make -j 4 \
74
- && make altinstall \
75
- && python3.6 -m pip install --no-input wheel \
76
- && cd ..
77
-
78
-
79
- # ##############################################################################
80
- # Install Python3.7 for Deployment
81
- # ##############################################################################
82
- RUN wget https://www.python.org/ftp/python/3.7.0/Python-3.7.0.tgz \
83
- && tar zxf Python-3.7.0.tgz \
84
- && cd Python-3.7.0 \
85
- && ./configure \
86
- && make -j 4 \
87
- && make altinstall \
88
- && python3.7 -m pip install --no-input wheel \
89
- && cd ..
90
-
91
- # ##############################################################################
92
- # Install Python3.8 for Deployment
93
- # ##############################################################################
94
- RUN wget https://www.python.org/ftp/python/3.8.0/Python-3.8.0.tgz \
95
- && tar zxf Python-3.8.0.tgz \
96
- && cd Python-3.8.0 \
97
- && ./configure \
98
- && make -j 4 \
99
- && make altinstall \
100
- && python3.8 -m pip install --no-input wheel \
101
- && cd ..
102
-
103
-
104
- # ##############################################################################
105
- # Install Python3.10 for Deployment
106
- # ##############################################################################
107
- RUN wget https://www.python.org/ftp/python/3.10.0/Python-3.10.0.tgz \
108
- && tar zxf Python-3.10.0.tgz \
109
- && cd Python-3.10.0 \
110
- && ./configure \
111
- && make -j 4 \
112
- && make altinstall \
113
- && python3.10 -m pip install --no-input wheel \
114
- && cd ..
115
-
116
-
117
-
118
36
# ##############################################################################
119
37
# Install entrypoint
120
38
# ##############################################################################
0 commit comments