CHRIS / Dockerfile
3v324v23's picture
Add Java runtime to CHRIS container
bac7d3d
Raw History Blame Contribute Delete
446 Bytes
# Use Python base image
FROM python:3.12
# Set working directory
WORKDIR /app
# Copy current files into container
COPY . /app
# Install Flask
RUN pip install --no-cache-dir -r requirements.txt
RUN apt-get update && \
apt-get install -y --no-install-recommends default-jre-headless && \
rm -rf /var/lib/apt/lists/*
# Expose default port
EXPOSE 7860
# Run with Gunicorn
CMD ["gunicorn", "-w", "4", "-b", "0.0.0.0:7860", "CHRIS:app"]