SHODAN / Dockerfile
jisaacso219's picture
Update Dockerfile
e70596d verified
raw
history blame
529 Bytes
# Base Python image
FROM python:3.10-slim
# Set environment vars
ENV NUMBA_CACHE_DIR=/tmp/numba_cache \
PYTHONUNBUFFERED=1 \
HF_HUB_DISABLE_SYMLINKS_WARNING=1
# Install system dependencies
RUN apt-get update && apt-get install -y \
ffmpeg libsndfile1 libgl1 git \
&& apt-get clean
# Set workdir
WORKDIR /app
# Copy all app files
COPY . .
# Install Python dependencies
RUN pip install --upgrade pip && \
pip install -r requirements.txt
# Expose port
EXPOSE 7860
# Run Flask app
CMD ["python", "app.py"]