-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.dev
More file actions
36 lines (26 loc) · 803 Bytes
/
Dockerfile.dev
File metadata and controls
36 lines (26 loc) · 803 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
# Development image with dev dependencies and interactive tools
FROM python:3.13-slim
WORKDIR /app
# Install system dev tools
RUN apt-get update && apt-get install -y --no-install-recommends \
git \
curl \
build-essential \
&& rm -rf /var/lib/apt/lists/*
# Create non-root user
RUN groupadd -r flowcheck && useradd -r -g flowcheck flowcheck
# Copy project
COPY pyproject.toml .
COPY src/ ./src/
COPY tests/ ./tests/
COPY docs/ ./docs/
# Install with dev dependencies
RUN pip install --no-cache-dir -e ".[dev]"
ENV PATH=/home/flowcheck/.local/bin:$PATH \
PYTHONUNBUFFERED=1 \
FLOWCHECK_LOG_LEVEL=DEBUG
RUN mkdir -p /data/flowcheck && chown -R flowcheck:flowcheck /data/flowcheck
USER flowcheck
EXPOSE 8000
# Default to interactive bash for development
CMD ["/bin/bash"]