forked from pocketbook/SDK_6.3.0
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Dockerfile
41 lines (33 loc) · 1.02 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
FROM debian:9-slim
LABEL maintainer="https://github.com/Skeeve"
# ENV SDK_ARCH=A13
# ENV SDK_ARCH=iMX6
ENV SDK_ARCH=B288
ENV SDK_BASE=/SDK
ENV SDK_URL=https://github.com/pocketbook/SDK_6.3.0/branches/5.19/SDK-${SDK_ARCH}
ENV CMAKE_VERSION=3.21.3
ENV CMAKE_URL=https://github.com/Kitware/CMake/releases/download/v${CMAKE_VERSION}
ENV CMAKE_TOOLCHAIN_FILE=${SDK_BASE}/share/cmake/arm_conf.cmake
VOLUME "/project"
WORKDIR "/project"
# Prepare SDK
RUN apt-get update \
&& apt-get upgrade --yes \
&& apt-get install --yes \
locales \
htop \
git \
build-essential \
curl \
subversion \
&& rm -rf /var/lib/apt/lists/* \
&& localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8 \
&& svn export ${SDK_URL} ${SDK_BASE} \
&& ${SDK_BASE}/bin/update_path.sh \
&& chmod +x $BASEPATH/*/usr/bin/pbres \
;
# Get cmake
RUN CMAKE="cmake-${CMAKE_VERSION}-linux-$( uname -m )" \
&& curl -L --silent ${CMAKE_URL}/${CMAKE}.tar.gz | tar xvzf - --strip-components=1 --directory=/usr \
;
ENTRYPOINT [ "bash" ]