Skip to content

Commit 4eec91c

Browse files
Create Dockerfile for building project
1 parent a0dadd5 commit 4eec91c

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

Dockerfile

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Base image
2+
FROM ubuntu:22.04
3+
4+
# Install build dependencies
5+
RUN apt-get update && apt-get install -y \
6+
python3 python3-pip meson ninja-build build-essential git curl \
7+
&& rm -rf /var/lib/apt/lists/*
8+
9+
# Set workdir
10+
WORKDIR /app
11+
12+
# Copy source code
13+
COPY . /app
14+
15+
# Build project
16+
RUN meson setup builddir && meson compile -C builddir
17+
18+
# Copy dist archives into container
19+
RUN mkdir -p /dist && cp builddir/meson-dist/* /dist/
20+
21+
# Default command (optional)
22+
CMD ["bash"]

0 commit comments

Comments
 (0)