-
Notifications
You must be signed in to change notification settings - Fork 25
/
Dockerfile.sdk
42 lines (34 loc) · 1.01 KB
/
Dockerfile.sdk
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
# ARGUMENTS --------------------------------------------------------------------
ARG CROSS_SDK_BASE_TAG=3.3.1
##
# Board architecture
##
ARG IMAGE_ARCH=
##
# Application root directory inside the container
##
ARG APP_ROOT=
# BUILD ------------------------------------------------------------------------
FROM commontorizon/debian-cross-toolchain-${IMAGE_ARCH}:${CROSS_SDK_BASE_TAG}
ARG APP_ROOT
ARG IMAGE_ARCH
# __deps__
RUN apt-get -q -y update && \
apt-get -q -y install \
# ADD YOUR PACKAGES HERE
&& \
apt-get clean && apt-get autoremove && \
rm -rf /var/lib/apt/lists/*
# __deps__
# automate for torizonPackages.json
RUN apt-get -q -y update && \
apt-get -q -y install \
# DO NOT REMOVE THIS LABEL: this is used for VS Code automation
# __torizon_packages_build_start__
# __torizon_packages_build_end__
# DO NOT REMOVE THIS LABEL: this is used for VS Code automation
&& \
apt-get clean && apt-get autoremove && \
rm -rf /var/lib/apt/lists/*
USER torizon
WORKDIR ${APP_ROOT}