Spaces:
Build error

env / Dockerfile
dhinesh-env's picture
Update Dockerfile
ef70d74 verified
Raw History Blame Contribute Delete
653 Bytes
FROM python:3.11-slim
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1 \
PIP_NO_CACHE_DIR=1 \
PIP_DISABLE_PIP_VERSION_CHECK=1
WORKDIR /app
# Copy the entire project
COPY . /app
# Install base dependencies first
RUN pip install --upgrade pip setuptools wheel
# Install OpenEnv and core dependencies
RUN pip install "openenv-core[core]>=0.2.2" "fastapi>=0.115.0" "uvicorn[standard]>=0.24.0" "pydantic>=2.6.0" "openai>=1.30.0"
# Install the secure_codegen_env package and its dependencies
RUN cd /app/secure_codegen_env && pip install -e .
# Expose port for Hugging Face Spaces
EXPOSE 7860
# Run the app
CMD ["python", "/app/app.py"]