Add Dockerfile for project containerization

This commit is contained in:
2024-11-01 11:56:18 -04:00
parent b7b5e1e187
commit 65570bfede
+21
View File
@@ -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"]