# Use the official Ubuntu base image
FROM ubuntu:22.04

# Metadata for the project
LABEL project='colav-protobuf-utils'
LABEL maintainer='Ryan McKee <r.mckee@qub.ac.uk>'
LABEL version='0.0.1'
LABEL description='A simple Ubuntu Dockerfile for development of the colav-protobuf-utils package'

# Set non-interactive mode to avoid prompts during package installation
ARG DEBIAN_FRONTEND=noninteractive

# Update package list and install common development tools
RUN apt-get update && \
    apt-get install -y \
    build-essential \
    git \
    curl \
    python3 \
    python3-pip \
    ca-certificates \
    && apt-get clean

# Set up a working directory
WORKDIR /workspace

COPY requirements.txt .

RUN /bin/bash -c "pip3 install -r requirements.txt"

# Define the default command (bash shell in this case)
CMD [ "bash" ]
