Spaces:
Running
Running
File size: 779 Bytes
72bc633 55609dc 72bc633 55609dc 72bc633 272bd90 72bc633 5d79ddf 72bc633 5d79ddf 72bc633 5d79ddf | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 | FROM python:3.11-slim
# System dependencies (docker.io for Docker-in-Docker sandbox, nginx for proxying)
RUN apt-get update \
&& apt-get install -y --no-install-recommends curl docker.io nginx gettext-base \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
# Install Python dependencies first (cache-friendly)
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy configuration files first
COPY nginx.conf /etc/nginx/nginx.conf
COPY start.sh .
COPY openenv.yaml .
COPY pyproject.toml .
COPY config.yaml .
# Copy application source
COPY patchhawk/ patchhawk/
COPY server/ server/
COPY inference.py .
RUN chmod +x start.sh
# Expose both the OpenEnv API port and Streamlit port
EXPOSE 7860
EXPOSE 8501
# Launch both servers
CMD ["./start.sh"]
|