mirror of
https://github.com/yogeshojha/rengine.git
synced 2026-10-01 22:24:53 +02:00
- Update Dockerfile to copy shared directory and dependency files - Create new README.md file - Refactor database session management and security imports - Implement user authentication routes and user management endpoints - Add configuration settings for application and database - Set up logging configuration for backend services - Update docker-compose for improved service management
18 lines
379 B
Docker
18 lines
379 B
Docker
FROM python:3.12-slim
|
|
|
|
WORKDIR /app
|
|
|
|
# Install uv
|
|
COPY --from=ghcr.io/astral-sh/uv:latest /uv /usr/local/bin/uv
|
|
|
|
# Copy shared directory isnide the app
|
|
COPY shared ./shared
|
|
|
|
COPY backend/pyproject.toml backend/uv.lock* ./
|
|
|
|
RUN uv sync --no-install-project
|
|
|
|
# Expose port
|
|
EXPOSE 8000
|
|
|
|
CMD ["uv", "run", "uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000", "--reload"] |