Release v0.1.1 #1

Merged
kqjy merged 20 commits from next into main 2025-11-22 12:31:27 +00:00
3 changed files with 13 additions and 1 deletions
Showing only changes of commit 36c08b0ac1 - Show all commits

View File

@@ -16,6 +16,9 @@ RUN pip install --no-cache-dir -r requirements.txt
COPY . . COPY . .
# Make entrypoint executable
RUN chmod +x docker-entrypoint.sh
# Create data directory and set permissions # Create data directory and set permissions
RUN mkdir -p /app/data \ RUN mkdir -p /app/data \
&& useradd -m -u 1000 myfsio \ && useradd -m -u 1000 myfsio \
@@ -31,4 +34,4 @@ ENV APP_HOST=0.0.0.0 \
HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \ HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
CMD python -c "import requests; requests.get('http://localhost:5000/healthz', timeout=2)" CMD python -c "import requests; requests.get('http://localhost:5000/healthz', timeout=2)"
CMD ["python", "run.py", "--mode", "both"] CMD ["./docker-entrypoint.sh"]

8
docker-entrypoint.sh Normal file
View File

@@ -0,0 +1,8 @@
#!/bin/sh
set -e
# Start API server in background
gunicorn "app:create_api_app()" --bind 0.0.0.0:5000 --workers 4 --access-logfile - &
# Start UI server in foreground
gunicorn "app:create_ui_app()" --bind 0.0.0.0:5100 --workers 4 --access-logfile -

View File

@@ -5,3 +5,4 @@ Flask-WTF>=1.2.1
pytest>=7.4 pytest>=7.4
requests>=2.31 requests>=2.31
boto3>=1.34 boto3>=1.34
gunicorn>=21.2.0