mirror of
https://gitlab.com/MoonTestUse1/AdministrationItDepartmens.git
synced 2025-08-14 00:25:46 +02:00
Создание чата7
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
# Use Python 3.11
|
||||
FROM python:3.11-slim
|
||||
|
||||
# Set working directory
|
||||
WORKDIR /app
|
||||
|
||||
# Install system dependencies
|
||||
@@ -11,13 +9,10 @@ RUN apt-get update && apt-get install -y \
|
||||
postgresql-client \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Copy requirements file
|
||||
COPY requirements.txt .
|
||||
|
||||
# Install Python dependencies
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
# Copy application code
|
||||
COPY . .
|
||||
|
||||
# Create script to run migrations and start app
|
||||
@@ -30,10 +25,8 @@ echo "Database is ready!"\n\
|
||||
echo "Running migrations..."\n\
|
||||
cd /app && alembic upgrade head\n\
|
||||
echo "Starting application..."\n\
|
||||
python run.py' > /app/start.sh && chmod +x /app/start.sh
|
||||
uvicorn app.main:app --host 0.0.0.0 --port 8000 --reload' > /app/start.sh && chmod +x /app/start.sh
|
||||
|
||||
# Expose port
|
||||
EXPOSE 8000
|
||||
|
||||
# Run migrations and start application
|
||||
CMD ["/app/start.sh"]
|
@@ -1,20 +1,12 @@
|
||||
fastapi==0.110.0
|
||||
uvicorn==0.27.1
|
||||
sqlalchemy==2.0.27
|
||||
pydantic==2.5.2
|
||||
pydantic-settings==2.2.1
|
||||
python-multipart==0.0.6
|
||||
python-jose[cryptography]==3.3.0
|
||||
passlib[bcrypt]>=1.7.4
|
||||
bcrypt>=4.0.1
|
||||
redis>=4.0.0
|
||||
python-dotenv==1.0.1
|
||||
psycopg2-binary==2.9.9
|
||||
alembic==1.13.1
|
||||
pytest==8.0.0
|
||||
httpx==0.26.0
|
||||
requests>=2.26.0
|
||||
aiogram==3.4.1
|
||||
websockets==12.0
|
||||
aiofiles==23.2.1
|
||||
APScheduler==3.10.4
|
||||
fastapi>=0.68.0,<0.69.0
|
||||
pydantic>=2.0.0
|
||||
uvicorn>=0.15.0,<0.16.0
|
||||
sqlalchemy>=1.4.0,<1.5.0
|
||||
psycopg2-binary>=2.9.1,<3.0.0
|
||||
python-jose[cryptography]>=3.3.0,<4.0.0
|
||||
passlib[bcrypt]>=1.7.4,<2.0.0
|
||||
python-multipart>=0.0.5,<0.0.6
|
||||
email-validator>=2.0.0
|
||||
python-dotenv>=0.19.0,<0.20.0
|
||||
aiofiles>=0.7.0,<0.8.0
|
||||
websockets>=10.0.0,<11.0.0
|
||||
|
Reference in New Issue
Block a user