forked from flipperdevices/flipperzero-firmware
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
51 lines (43 loc) · 1.23 KB
/
Dockerfile
File metadata and controls
51 lines (43 loc) · 1.23 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Use 64-bit Ubuntu as the base image
FROM ubuntu:20.04
# Set environment variable to make the installation non-interactive
ENV DEBIAN_FRONTEND=noninteractive
# Set the working directory inside the container
WORKDIR /flipperzero-firmware
# Update package lists and install dependencies
RUN apt-get update && \
apt-get -y install \
build-essential \
git \
cmake \
python3 \
python3-pip \
libusb-1.0-0-dev \
libnewlib-arm-none-eabi \
gcc-arm-none-eabi \
binutils-arm-none-eabi \
libstdc++-arm-none-eabi-newlib \
pkg-config \
libssl-dev \
libncurses5 \
lsb-core \
libncurses5-dev \
libncursesw5-dev \
libpng-dev \
libsecret-1-dev \
zlib1g-dev \
libreadline-dev \
libusb-1.0-0-dev \
libudev-dev \
qtbase5-dev \
libhidapi-dev
# Clone the project repository
RUN git clone --recursive https://github.com/flipperdevices/flipperzero-firmware.git .
# Checkout a specific version of the project
RUN git checkout 0.98.3
# Install required Python packages
RUN pip3 install pyusb
# Compile the project
RUN ./fbt
# Set the default command to /bin/bash
CMD ["/bin/bash"]