-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathDockerfile.dev
More file actions
39 lines (30 loc) · 821 Bytes
/
Dockerfile.dev
File metadata and controls
39 lines (30 loc) · 821 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
FROM python:3.12-slim
# Set environment variables
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1 \
PYTHONIOENCODING=utf-8
# Install system dependencies
RUN apt-get update && \
apt-get install -y \
gcc \
curl \
ca-certificates && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# Install UV package manager
RUN pip install --upgrade pip && \
pip install uv
# Set working directory
WORKDIR /app
# Copy requirements and install dependencies
COPY pyproject.toml ./
RUN uv pip install --system --no-cache-dir -e ".[dev]"
# Copy application source code and scripts
COPY src/ ./src/
COPY scripts/ ./scripts/
# Make scripts executable
RUN chmod +x scripts/*.sh
# Expose port
EXPOSE 8000
# Start the application using development script
CMD ["./scripts/start-dev.sh"]