diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..cfdc0d9 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,17 @@ +# Use an official Python runtime as a parent image +FROM python:3.11 + +# Set the working directory in the container +WORKDIR /usr/src/app + +# Copy the current directory contents into the container +COPY . /usr/src/app + +# Install PDM (Python Dependency Manager) +RUN pip install pdm + +# Install dependencies and pre-commit hooks +RUN make setup + +# Command to run tests +CMD ["pdm", "run", "test"]