Spaces:
Sleeping
Sleeping
Download Dockerfile from SheSync/meta-hackathon-project: direct link, hf CLI and curl.
- Browser
- Download file 1.03 kB
-
https://huggingface.co/spaces/SheSync/meta-hackathon-project/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/SheSync/meta-hackathon-project/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/SheSync/meta-hackathon-project/resolve/main/Dockerfile
1.03 kB
| # Copyright (c) Meta Platforms, Inc. and affiliates. | |
| # All rights reserved. | |
| # | |
| # This source code is licensed under the BSD-style license found in the | |
| # LICENSE file in the root directory of this source tree. | |
| # Multi-stage build using openenv-base | |
| # This Dockerfile is flexible and works for both: | |
| # - In-repo environments (with local OpenEnv sources) | |
| # - Standalone environments (with openenv from PyPI/Git) | |
| # The build script (openenv build) handles context detection and sets appropriate build args. | |
| FROM python:3.10 | |
| WORKDIR /app | |
| COPY . . | |
| COPY openenv.yaml /app/server/openenv.yaml | |
| COPY openenv.yaml /app/openenv.yaml | |
| RUN pip install --no-cache-dir openenv-core | |
| RUN pip install --no-cache-dir -r server/requirements.txt | |
| ENV PYTHONPATH="/app:/app/my_env:$PYTHONPATH" | |
| # Install openenv-core explicitly | |
| RUN /app/.venv/bin/pip install openenv-core || \ | |
| /app/.venv/bin/python -m pip install openenv-core || \ | |
| pip install openenv-core | |
| CMD ["sh", "-c", "cd /app && uvicorn server.app:app --host 0.0.0.0 --port 7860"] | |