-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathDockerfile
More file actions
34 lines (30 loc) · 1.34 KB
/
Dockerfile
File metadata and controls
34 lines (30 loc) · 1.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Use a rather old version of ubuntu to ensure compatibility regarding libc
FROM --platform=linux/amd64 debian:9
LABEL description="Build environment for piutools"
# Install build dependencies, multilib to get 32-bit versions
RUN dpkg --add-architecture i386
RUN > /etc/apt/sources.list
RUN echo "deb http://archive.debian.org/debian stretch main contrib non-free" >> /etc/apt/sources.list
RUN echo "deb http://archive.debian.org/debian-security stretch/updates main contrib non-free" >> /etc/apt/sources.list
RUN echo "deb http://archive.debian.org/debian stretch-backports main contrib non-free" >> /etc/apt/sources.list
RUN apt-get -y update
RUN apt-get install -y g++-multilib
RUN apt-get install -y gcc-multilib
RUN apt-get install -y zip
RUN apt-get install -y cmake
RUN apt-get install -y make
RUN apt-get install -y git
RUN apt-get install -y libc6-dev:i386
RUN apt-get install -y libusb-1.0-0-dev:i386
RUN apt-get install -y libusb-dev:i386
RUN apt-get install -y libasound2-dev:i386
RUN apt-get install -y libx11-dev:i386
RUN apt-get install -y libcurl4-gnutls-dev:i386
RUN apt-get install -y libglu1-mesa-dev:i386
RUN apt-get install -t stretch-backports -y libgl1:i386
# Delete apt-cache to reduce image size
RUN rm -rf /var/lib/apt/lists/*
# Copy files for building to container
RUN mkdir /piutools
WORKDIR /piutools
# docker build -t piutools_buildenv .