-
Notifications
You must be signed in to change notification settings - Fork 123
Expand file tree
/
Copy pathDockerfile
More file actions
39 lines (29 loc) · 840 Bytes
/
Dockerfile
File metadata and controls
39 lines (29 loc) · 840 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Use Python 3.11 slim image
FROM python:3.11-slim
# Set working directory
WORKDIR /app
# Install system dependencies
RUN apt-get update && apt-get install -y \
curl \
&& rm -rf /var/lib/apt/lists/*
# Install uv
RUN pip install uv
# Copy project files
COPY pyproject.toml uv.lock README.md ./
COPY pixelle/ ./pixelle/
COPY workflows/ ./workflows/
COPY docs/ ./docs/
# Install Python dependencies using uv
RUN uv sync --frozen
# Create pixelle working directory and data structure
WORKDIR /app
RUN mkdir -p /app/data/custom_workflows /app/data/custom_starters
# Set default port
ENV PORT=9004
# Expose port
EXPOSE 9004
# Health check
HEALTHCHECK --interval=30s --timeout=10s --start-period=10s --retries=3 \
CMD curl -f http://localhost:9004/health || exit 1
# Run the application
CMD ["uv", "run", "pixelle", "start"]