summaryrefslogtreecommitdiff
path: root/servers/taskwarrior/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'servers/taskwarrior/Dockerfile')
-rw-r--r--servers/taskwarrior/Dockerfile21
1 files changed, 21 insertions, 0 deletions
diff --git a/servers/taskwarrior/Dockerfile b/servers/taskwarrior/Dockerfile
new file mode 100644
index 0000000..fe59aca
--- /dev/null
+++ b/servers/taskwarrior/Dockerfile
@@ -0,0 +1,21 @@
+FROM python:3.11-slim
+
+WORKDIR /app
+
+# Install TaskWarrior
+RUN apt-get update && \
+ apt-get install -y --no-install-recommends taskwarrior && \
+ rm -rf /var/lib/apt/lists/*
+
+# Copy only the requirements first to leverage Docker cache
+COPY . .
+
+# Install dependencies
+RUN pip install --no-cache-dir uv && \
+ uv pip install --system --no-cache-dir -e .
+
+# Expose the port for remote transport
+EXPOSE 8080
+
+# Run the server with remote transport by default
+CMD ["mcp-taskwarrior", "--transport", "remote"]