-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
51 lines (43 loc) · 1.03 KB
/
Dockerfile
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
FROM debian:buster
ARG PUID
ENV PUID=${PUID:-1000}
ARG PGID
ENV PGID=${PGID:-1000}
ENV ENTRYPOINT ${ENTRYPOINT:-/docker-entrypoint.sh}
RUN export DEBIAN_FRONTEND=noninteractive && apt-get update && apt-get -y -q \
upgrade \
udev \
sudo \
locales \
locales-all \
git \
build-essential \
gcc-arm-linux-gnueabihf \
gcc-arm-none-eabi \
libssl-dev \
device-tree-compiler \
u-boot-tools \
libncurses-dev \
flex \
bison \
python \
bc \
multistrap \
qemu-user-static \
gdisk \
unzip \
openjdk-11-jre \
libusb-1.0-0 \
kmod \
libguestfs-tools \
&& apt-get clean
RUN locale-gen en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
COPY ./docker-entrypoint.sh /
# Install STM32CubeProg
#COPY ./st-tools/en.stm32cubeprog_v2-4-0.zip /tmp/
#RUN unzip /tmp/en.stm32cubeprog_v2-4-0.zip -d /tmp/
#RUN printf "1\n1\n1\n\nO\n1\nY\nY\nY\n1\nN\nN\nN\n1\n" | ./tmp/SetupSTM32CubeProgrammer-2.4.0.linux
#RUN cp /usr/local/STMicroelectronics/STM32Cube/STM32CubeProgrammer/Drivers/rules/*.* /etc/udev/rules.d/
ENTRYPOINT ["./docker-entrypoint.sh"]