Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files10 unmodified lines11121314151617239 unmodified lines25725825926026126210 unmodified lines2732742752762772782791 unmodified line28128228328428528610 unmodified linesENV PIP_NO_CACHE_DIR=1ENV PIP_DISABLE_PIP_VERSION_CHECK=1ENV DEBIAN_FRONTEND=noninteractiveENV APP_PORT=7860ENV XDG_RUNTIME_DIR=/tmp/runtime-userENV PATH="/home/user/.local/bin:/usr/local/bin:${PATH}"239 unmodified linesexit 1fi# ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ# Start Web Server# ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ10 unmodified lines# ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββWORKDIR /app# Ensure .env file existsRUN touch /app/.env && chown user:user /app/.envEXPOSE ${APP_PORT}1 unmodified lineHEALTHCHECK --interval=30s --timeout=10s --start-period=40s --retries=3 \CMD curl -f http://localhost:${APP_PORT}/health || exit 1# Use Entrypoint to start DBs, then run the boot.py serverENTRYPOINT ["/usr/local/bin/entrypoint.sh"]CMD ["python", "/app/core/boot.py"]10 unmodified lines11121314151617239 unmodified lines25725825926026126226326426526610 unmodified lines2772782792802812822832841 unmodified line28628728828929029129229329410 unmodified linesENV PIP_NO_CACHE_DIR=1ENV PIP_DISABLE_PIP_VERSION_CHECK=1ENV DEBIAN_FRONTEND=noninteractiveENV APP_PORT=3000ENV XDG_RUNTIME_DIR=/tmp/runtime-userENV PATH="/home/user/.local/bin:/usr/local/bin:${PATH}"239 unmodified linesexit 1fi/app/scripts/run_tests.sh || truecd /app/apps/backend && ./backend_api_service.sh start 0.0.0.0 8000 1sleep 10# ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ# Start Web Server# ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ10 unmodified lines# ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββWORKDIR /app# Ensure .env file existsRUN touch /app/.env /app/scripts/run_tests.sh && chown user:user /app/.env /app/scripts/run_tests.shRUN chmod +x /app/scripts/run_tests.shEXPOSE ${APP_PORT}1 unmodified lineHEALTHCHECK --interval=30s --timeout=10s --start-period=40s --retries=3 \CMD curl -f http://localhost:${APP_PORT}/health || exit 1USER usercd /app/apps/web && npm install && npm run build && nohup npm run serve &# Use Entrypoint to start DBs, then run the boot.py serverENTRYPOINT ["/usr/local/bin/entrypoint.sh"]CMD ["python", "/app/core/boot.py"]
Dockerfile+10-2