-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
30 lines (22 loc) · 687 Bytes
/
Dockerfile
File metadata and controls
30 lines (22 loc) · 687 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
# Simple Dockerfile for EMS API demonstration
# Mid-level Docker usage - straightforward and functional
FROM python:3.13-slim
# Set environment variables
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1
# Set working directory
WORKDIR /app
# Copy requirements and install dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy application code
COPY . .
# Expose port that the app runs on
EXPOSE 8000
# Run the application
CMD ["python", "api.py"]
# This Dockerfile demonstrates:
# - Basic containerization concepts
# - Proper dependency management
# - Clean, readable Docker practices
# - Suitable for development and demo purposes