setup setup
This commit is contained in:
+4
-3
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user