-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile.without-vcpkg
40 lines (33 loc) · 1.03 KB
/
Dockerfile.without-vcpkg
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
## base image
FROM abeimler/simple-cppbuilder:base AS base
# default compiler versions
ARG extra_libraries
# Install packages available from standard repos
RUN pacman-db-upgrade && \
pacman -S --noconfirm --needed \
gcc wget curl pkg-config zip unzip tar git go && \
pacman -S --noconfirm \
clang binutils bison \
${extra_libraries} \
cmake make ninja && \
pacman -Scc --noconfirm
# set default compiler
ENV CC "gcc"
ENV CXX "g++"
ENV CMAKE "cmake"
ENV MAKE "make"
# build script settings
ENV TARGET "all"
ENV BUILD_TYPE "Release"
ENV CMAKE_GENERATOR "Ninja Multi-Config"
ENV CMAKE_ARGS ""
# setup project env
WORKDIR /home/project
COPY ./scripts/docker-build-without-toolchain.sh ./docker-build.sh
COPY ./scripts/docker-test.sh ./docker-test.sh
COPY ./scripts/docker-test-coverage.sh ./docker-test-coverage.sh
COPY ./taskfiles/*.yml /home/taskfiles/
COPY ./taskfiles/TaskfileWithoutVcpkgToolchain.yml /home/taskfiles/Taskfile.yml
ENV PROJECT_DIR /home/project
WORKDIR /home/project
RUN mkdir build