setup setup

This commit is contained in:
2025-11-19 20:02:34 +00:00
parent 787fd86260
commit 68d8f91199
7 changed files with 505 additions and 11 deletions
+4 -3
View File
@@ -13,8 +13,9 @@ RUN pip install --no-cache-dir -r requirements.txt
# Copy application code
COPY . .
# Make startup script executable
# Make startup scripts executable
RUN chmod +x start.sh
RUN chmod +x docker-entrypoint.sh
# Set environment variables
ENV PYTHONPATH=/app
@@ -24,8 +25,8 @@ ENV UVICORN_WORKERS=4
# Expose port
EXPOSE 8000
# Use the new startup script in production mode
CMD ["./start.sh", "prod"]
# Use the production entrypoint script (supports initialization)
ENTRYPOINT ["./docker-entrypoint.sh"]
# Alternative: Run initialization first, then production server
# CMD ["sh", "-c", "./start.sh init && ./start.sh prod"]