From 65570bfedeb2c8f1c2086262fed5c90f84ee1027 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Fri, 1 Nov 2024 11:56:18 -0400 Subject: [PATCH] Add Dockerfile for project containerization --- Dockerfile | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..5bbf93f --- /dev/null +++ b/Dockerfile @@ -0,0 +1,21 @@ +FROM python:3.12-slim + +# Install system dependencies +RUN apt-get update && apt-get install -y \ + git \ + && rm -rf /var/lib/apt/lists/* + +# Install uv +RUN pip install uv + +# Create and set working directory +WORKDIR /app + +# Copy requirements/project files +ONBUILD COPY . . + +# Install dependencies using uv +RUN uv pip install "simplemind[full]" --system + +# Set default command +CMD ["python"]