codex-console / Dockerfile
cjovs's picture
Respect HF PORT during startup
ac94fff verified
raw
history blame contribute delete
509 Bytes
FROM python:3.11-slim
WORKDIR /app
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1 \
APP_HOST=0.0.0.0 \
LOG_LEVEL=info \
DEBUG=0
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
bash \
gcc \
python3-dev \
&& rm -rf /var/lib/apt/lists/*
COPY requirements.txt .
RUN pip install --no-cache-dir --upgrade pip \
&& pip install --no-cache-dir -r requirements.txt
COPY . .
EXPOSE 7860
CMD ["bash", "/app/deploy/huggingface/start.sh"]