anomaly-detection / Dockerfile
zeetay's picture
initial deploy
b0add2b verified
Raw
History Blame Contribute Delete
322 Bytes
FROM python:3.12-slim
WORKDIR /app
ENV PYTHONUNBUFFERED=1 \
PYTHONDONTWRITEBYTECODE=1 \
PIP_NO_CACHE_DIR=1
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
# HF Spaces requires 7860; Fly.io overrides via [env] in fly.toml
ENV PORT=7860
EXPOSE 7860
CMD ["python", "run.py"]