forked from berthubert/tkconv
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
33 lines (27 loc) · 769 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
26
27
28
29
30
31
32
33
# Use an official Ubuntu image as the base image
FROM ubuntu:24.04
# Set the environment variables to prevent interactive prompts
ENV DEBIAN_FRONTEND=noninteractive
# Install dependencies
RUN apt-get update && \
apt-get install -y \
git \
build-essential \
meson \
ninja-build \
pkg-config \
nlohmann-json3-dev \
libsqlite3-dev \
libpugixml-dev \
libpq-dev \
cmake
# Set the working directory inside the container
WORKDIR /app
# Copy the project files to the container
COPY . .
# Create build directory, compile project with meson and install
RUN meson setup build && \
meson compile -C build &&\
cp -r build/* /usr/local/bin/
# Default command to run when the container starts (modify as needed)
CMD ["tkserv"]