-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
25 lines (20 loc) · 827 Bytes
/
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
# Creates container with environment similar to github actions.
#FROM muslcc/x86_64:i686-linux-musl
FROM muslcc/x86_64:x86_64-linux-musl
#FROM muslcc/x86_64:arm-linux-musleabihf
#FROM muslcc/x86_64:aarch64-linux-musl
# Emulate github
ENV GITHUB_WORKSPACE=/github
COPY . $GITHUB_WORKSPACE/
RUN mkdir -p "$GITHUB_WORKSPACE" && \
apk update && \
apk add nano && \
apk add python3 perl-parse-yapp rpcgen && \
sh "$GITHUB_WORKSPACE/build/deps/install_common_deps_alpine" && \
rm -rf /var/cache/apk/*
# This is required for some builds that require both host and cross compilers.
# Uncomment when testing arm/aarch64 cross-compilation.
#RUN sh "$GITHUB_WORKSPACE/build/deps/install_build_compiler"
ENV PKG_CONFIG_PATH="/x86_64-linux-musl/usr/lib/pkgconfig"
WORKDIR $GITHUB_WORKSPACE/build/targets/
ENTRYPOINT ["bash"]