mirror of
https://github.com/harivansh-afk/url-shortner.git
synced 2026-04-15 14:03:53 +00:00
18 lines
332 B
Docker
18 lines
332 B
Docker
FROM python:3.12-slim
|
|
|
|
WORKDIR /app
|
|
|
|
# Install uv for fast package management
|
|
RUN pip install uv
|
|
|
|
# Copy dependency files
|
|
COPY pyproject.toml .
|
|
|
|
# Install dependencies
|
|
RUN uv pip install --system -e .
|
|
|
|
# Copy application code
|
|
COPY app/ app/
|
|
|
|
# Run with uvicorn
|
|
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]
|