-
-
Notifications
You must be signed in to change notification settings - Fork 437
/
Dockerfile.armhf
35 lines (28 loc) · 1.01 KB
/
Dockerfile.armhf
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
FROM jetbrains/teamcity-minimal-agent:latest
# This is important for using apt-get
USER root
# Default build configuration
ENV AS_BUILDAGENT=0 \
BUILD_ARCHITECTURE=arm \
BUILD_CONFIG=release \
GCC_PREFIX=arm-linux-gnueabihf- \
AR=arm-linux-gnueabihf-ar \
CC=arm-linux-gnueabihf-gcc-10 \
CXX=arm-linux-gnueabihf-g++-10
# Add apt-get support for arm64 and armhf
COPY utils/arm-cross-compile-sources.list /etc/apt/sources.list.d/
# Install build-time dependencies
RUN sed -i 's/deb http/deb \[arch=amd64,i386\] http/' /etc/apt/sources.list && \
dpkg --add-architecture armhf && \
apt-get update && \
apt-get install -y make git ncftp \
gcc-10-arm-linux-gnueabihf g++-10-arm-linux-gnueabihf \
libncurses-dev:armhf libncursesw6:armhf libmysqlclient-dev:armhf
# Set build directory
VOLUME /build
WORKDIR /build
# Copy entrypoint script
COPY utils/docker-entrypoint-arm.sh /docker-entrypoint.sh
RUN chmod +x /docker-entrypoint.sh
# Set entrypoint
ENTRYPOINT bash /docker-entrypoint.sh