DESI_Spectra_Zoo / Dockerfile
matthieulel's picture
Fix: absolute path for send_file + copy dataset_config.yaml in Docker
c2f9938
Raw
History Blame
329 Bytes
FROM python:3.9-slim
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY app.py .
COPY dataset_config.yaml .
COPY src/ ./src/
RUN mkdir -p cache/plots state
EXPOSE 7860
CMD ["gunicorn", "--bind", "0.0.0.0:7860", "--workers", "1", "--threads", "4", "--timeout", "120", "app:server"]