auth service completed and tested
This commit is contained in:
30
DockerApiServices/AuthServiceApi/Dockerfile
Normal file
30
DockerApiServices/AuthServiceApi/Dockerfile
Normal file
@@ -0,0 +1,30 @@
|
||||
FROM python:3.9-slim
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# Install system dependencies
|
||||
RUN apt-get update && apt-get install -y \
|
||||
gcc \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Copy all required directories
|
||||
COPY DockerApiServices/AllApiNeeds /app/
|
||||
COPY ApiLibrary /app/ApiLibrary
|
||||
COPY ApiValidations /app/ApiValidations
|
||||
COPY AllConfigs /app/AllConfigs
|
||||
COPY ErrorHandlers /app/ErrorHandlers
|
||||
COPY Schemas /app/Schemas
|
||||
COPY Services /app/Services
|
||||
|
||||
# Install Python dependencies
|
||||
COPY DockerApiServices/requirements.txt /app/
|
||||
RUN pip install --upgrade pip && pip install --no-cache-dir -r /app/requirements.txt
|
||||
|
||||
# Copy application code
|
||||
COPY . .
|
||||
|
||||
# Set Python path to include app directory
|
||||
ENV PYTHONPATH=/app
|
||||
|
||||
# Run the application using the configured uvicorn server
|
||||
CMD ["python", "app.py"]
|
||||
15
DockerApiServices/AuthServiceApi/requirements.txt
Normal file
15
DockerApiServices/AuthServiceApi/requirements.txt
Normal file
@@ -0,0 +1,15 @@
|
||||
fastapi==0.104.1
|
||||
uvicorn==0.24.0.post1
|
||||
pydantic==2.10.5
|
||||
sqlalchemy==2.0.37
|
||||
psycopg2-binary==2.9.10
|
||||
python-dateutil==2.9.0.post0
|
||||
motor==3.3.2
|
||||
redis==5.2.1
|
||||
pytest==7.4.4
|
||||
pytest-asyncio==0.21.2
|
||||
pytest-cov==4.1.0
|
||||
coverage==7.6.10
|
||||
arrow==1.3.0
|
||||
redmail==0.6.0
|
||||
sqlalchemy-mixins==2.0.5
|
||||
Reference in New Issue
Block a user