FROM ubuntu:24.04

# Update package lists and install required packages
RUN apt-get update && apt-get install -y \
    cmake \
    g++ \
    check \
    pkg-config \
    ninja-build \
    && apt-get clean \
    && rm -rf /var/lib/apt/lists/*

# Set the working directory
WORKDIR /datetime

# Copy the current directory contents into /datetime
COPY . /datetime

# Change ownership of /datetime to the user 'ubuntu'
RUN chown -R ubuntu:ubuntu /datetime

# End the container with an infinite sleep to keep it running
CMD ["sleep", "infinity"]
