forked from curdriceaurora/Local-File-Organizer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.dev
More file actions
64 lines (53 loc) · 1.78 KB
/
Dockerfile.dev
File metadata and controls
64 lines (53 loc) · 1.78 KB
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# =============================================================================
# File Organizer v2 - Development Dockerfile
# Full-featured image with dev tools, debugging, and live reload
# =============================================================================
FROM python:3.11
# OCI Image Labels
LABEL org.opencontainers.image.title="File Organizer v2 (Development)" \
org.opencontainers.image.description="Development image with debug tools and live reload" \
org.opencontainers.image.version="2.0.0-alpha.1-dev"
# Avoid interactive prompts during package installation
ENV DEBIAN_FRONTEND=noninteractive \
PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1
# Install system dependencies including dev tools
RUN apt-get update && apt-get install -y --no-install-recommends \
# Runtime dependencies
ffmpeg \
libmagic1 \
curl \
# Build dependencies
build-essential \
gcc \
g++ \
libffi-dev \
libssl-dev \
# Development tools
git \
vim \
less \
jq \
&& rm -rf /var/lib/apt/lists/*
# Set working directory
WORKDIR /app
# Install Python dependencies first for layer caching
COPY pyproject.toml /app/pyproject.toml
COPY src/ /app/src/
# Install the package with all development extras
RUN pip install --no-cache-dir --upgrade pip setuptools wheel \
&& pip install --no-cache-dir -e "/app[dev,audio,video]"
# Install additional dev utilities
RUN pip install --no-cache-dir \
debugpy \
ipython \
ipdb
# Create data directory
RUN mkdir -p /data
# Expose ports: 8000 for API, 5678 for debugpy
EXPOSE 8000
EXPOSE 5678
# Default command: run with live reload enabled
CMD ["python", "-m", "uvicorn", "file_organizer.api:app", \
"--host", "0.0.0.0", "--port", "8000", "--reload", \
"--reload-dir", "/app/src"]