mirror of
https://github.com/kennethreitz/simplemind.git
synced 2026-06-05 06:46:18 +00:00
Add Dockerfile for project containerization
This commit is contained in:
+21
@@ -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"]
|
||||||
Reference in New Issue
Block a user