-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile.dev
More file actions
49 lines (38 loc) · 959 Bytes
/
Copy pathDockerfile.dev
File metadata and controls
49 lines (38 loc) · 959 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
40
41
42
43
44
45
46
47
48
49
# Development Dockerfile for Qubes
# Multi-stage build for efficient development environment
FROM python:3.13-slim as base
# Set working directory
WORKDIR /app
# Install system dependencies
RUN apt-get update && apt-get install -y \
git \
build-essential \
libssl-dev \
libffi-dev \
curl \
&& rm -rf /var/lib/apt/lists/*
# Install Python dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Development stage
FROM base as development
# Install development tools
RUN pip install --no-cache-dir \
black \
ruff \
mypy \
pytest \
pytest-cov \
pytest-asyncio \
ipython
# Copy application code
COPY . .
# Create data directories
RUN mkdir -p data/qubes data/logs
# Expose health check port
EXPOSE 8080
# Set environment variables
ENV PYTHONUNBUFFERED=1
ENV PYTHONDONTWRITEBYTECODE=1
# Default command (can be overridden)
CMD ["python", "-m", "orchestrator.health"]