-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy pathDockerfile.dev
More file actions
38 lines (29 loc) · 791 Bytes
/
Copy pathDockerfile.dev
File metadata and controls
38 lines (29 loc) · 791 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
# Development Dockerfile with dev dependencies
FROM python:3.11-slim
# Install system dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
gcc \
g++ \
git \
vim \
&& rm -rf /var/lib/apt/lists/*
# Set environment variables
ENV PYTHONUNBUFFERED=1 \
PYTHONDONTWRITEBYTECODE=1 \
PIP_NO_CACHE_DIR=1
WORKDIR /app
# Copy requirements
COPY requirements.txt requirements-dev.txt ./
# Install dependencies
RUN pip install --upgrade pip && \
pip install -r requirements.txt && \
pip install -r requirements-dev.txt
# Copy application
COPY . .
# Install in development mode
RUN pip install -e .
# Expose ports
EXPOSE 8443 8080
# Default command
CMD ["python", "examples/server_example.py", "--mode", "basic"]