CoolFace
Apppublic

spedrox-sac/echo-env

sourceHugging Faceupdated 6mo agoView on Hugging Face
0likes
Dockerfile32 linesDownload Raw Back to root
1# Copyright (c) Meta Platforms, Inc. and affiliates.2# All rights reserved.3#4# This source code is licensed under the BSD-style license found in the5# LICENSE file in the root directory of this source tree.6 7# Multi-stage build using openenv-base8# This Dockerfile is flexible and works for both:9# - In-repo environments (with local src/core)10# - Standalone environments (with openenv-core from pip)11# The build script (openenv build) handles context detection and sets appropriate build args.12 13FROM python:3.11-slim14 15WORKDIR /app16 17# Install uv18RUN pip install uv19 20# Copy everything21COPY . .22 23# Install openenv-core and fastapi/uvicorn24RUN pip install openenv-core fastapi uvicorn25 26# HF Spaces requires port 786027EXPOSE 786028 29ENV PYTHONPATH="/app"30 31CMD ["uvicorn", "server.app:app", "--host", "0.0.0.0", "--port", "7860"]32