File tree Expand file tree Collapse file tree 1 file changed +41
-0
lines changed Expand file tree Collapse file tree 1 file changed +41
-0
lines changed Original file line number Diff line number Diff line change 1+ # Use a specific Ubuntu base image
2+ FROM ubuntu:20.04
3+
4+ # Set environment variables to avoid interaction
5+ ENV DEBIAN_FRONTEND=noninteractive \
6+ TZ=UTC
7+
8+ # Install system dependencies and clean up
9+ RUN apt-get update && \
10+ apt-get install -y \
11+ build-essential \
12+ gcc \
13+ g++ \
14+ gdb \
15+ libstdc++-10-dev \
16+ wget \
17+ python3 \
18+ python3-pip \
19+ git \
20+ tzdata && \
21+ apt-get clean && \
22+ rm -rf /var/lib/apt/lists/*
23+
24+ RUN python3 -m pip install --no-cache-dir meson ninja
25+
26+ # Set environment variables
27+ ENV CC=/usr/bin/gcc
28+ ENV CXX=/usr/bin/g++
29+ ENV LD_LIBRARY_PATH=/usr/local/lib
30+
31+ # Set the working directory
32+ WORKDIR /usr/src/app
33+
34+ # Copy the source code
35+ COPY . .
36+
37+ # Set the working directory
38+ RUN meson setup -Dwith_test=enable builddir
39+ RUN meson compile -C builddir
40+ RUN meson test -C builddir
41+ RUN meson install -C builddir
You can’t perform that action at this time.
0 commit comments