Spaces:
Runtime error
Runtime error
Download Dockerfile from Corin1998/GrowthOps_OS: direct link, hf CLI and curl.
- Browser
- Download file 1.01 kB
-
https://huggingface.co/spaces/Corin1998/GrowthOps_OS/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Corin1998/GrowthOps_OS/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Corin1998/GrowthOps_OS/resolve/main/Dockerfile
1.01 kB
| # syntax=docker/dockerfile:1.6 | |
| FROM python:3.11-slim | |
| ENV PYTHONDONTWRITEBYTECODE=1 \ | |
| PYTHONUNBUFFERED=1 \ | |
| PIP_NO_CACHE_DIR=1 | |
| # OS deps | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| curl ca-certificates gcc build-essential \ | |
| redis-server \ | |
| postgresql postgresql-contrib \ | |
| libpq-dev \ | |
| && rm -rf /var/lib/apt/lists/* | |
| WORKDIR /app | |
| # 依存(キャッシュ効率のため requirements のみ先にコピー) | |
| COPY requirements.txt /app/requirements.txt | |
| RUN pip install -r /app/requirements.txt | |
| # アプリ本体をコピー | |
| COPY . /app | |
| # 実行権限 & ランタイムディレクトリ | |
| RUN chmod +x /app/entrypoint.sh /app/scripts/init_db.py \ | |
| && mkdir -p /data/exports | |
| # Hugging Face の既定ポート | |
| ENV PORT=7860 | |
| EXPOSE 7860 | |
| # Postgres(内部起動時のデフォルト値) | |
| ENV POSTGRES_USER=app \ | |
| POSTGRES_PASSWORD=app \ | |
| POSTGRES_DB=growthops | |
| # エントリポイント(supervisord を使わず直起動) | |
| CMD ["/app/entrypoint.sh"] | |