-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
30 lines (24 loc) · 1.12 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
# GCC support can be specified at major, minor, or micro version
# (e.g. 8, 8.2 or 8.2.0).
# See https://hub.docker.com/r/library/gcc/ for all supported GCC
# tags from Docker Hub.
# See https://docs.docker.com/samples/library/gcc/ for more on how to use this image
FROM --platform=linux/amd64 gcc:latest
# Install the environment
RUN apt-get -y update && apt-get install -y
RUN apt-get upgrade -y
RUN apt-get install -y clang g++ build-essential g++-i686-linux-gnu
# Check the build environment to match, check the corresponding library path in the compiler
# arm64: g++-aarch64-linux-gnu
# i686: g++-i686-linux-gnu
COPY ext/fastbuild/fbuild /usr/local/bin/
COPY ext/fastbuild/fbuildworker /usr/local/bin/
RUN chmod -R 665 /usr/local/bin/fbuild
RUN chmod -R 665 /usr/local/bin/fbuildworker
# These commands copy your files into the specified directory in the image
# and set that as the working location
RUN mkdir -p /usr/src/fbuild
WORKDIR /usr/src/fbuild
ENV FASTBUILD_BROKERAGE_PATH=/usr/share/fbuild-brokerage
CMD ["fbuild", "-dist", "-forceremote", "-progress", "-summary"]
LABEL Name=fbuild Version=0.0.1