- Add FastAPI service for managing oil delivery services - Implement service scheduling and management endpoints - Add customer service history tracking - Include database models for services, customers, and auto-delivery - Add authentication and authorization middleware - Configure Docker support for local, dev, and prod environments - Add comprehensive .gitignore for Python projects
22 lines
292 B
Docker
22 lines
292 B
Docker
FROM python:3.12-bullseye
|
|
|
|
ENV PYTHONFAULTHANDLER=1
|
|
|
|
ENV PYTHONUNBUFFERED=1
|
|
|
|
ENV MODE="PRODUCTION"
|
|
|
|
RUN mkdir -p /app
|
|
|
|
COPY requirements.txt /app
|
|
|
|
WORKDIR /app
|
|
|
|
RUN pip3 install -r requirements.txt
|
|
|
|
EXPOSE 8000
|
|
|
|
COPY . /app
|
|
|
|
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]
|