FROM python:3.12-slim RUN apt-get update && apt-get install -y build-essential git curl ocl-icd-libopencl1 WORKDIR /app ENV VIRTUAL_ENV=/app/venv RUN python3 -m venv "$VIRTUAL_ENV" ENV PATH="$VIRTUAL_ENV/bin:$PATH" RUN pip install --upgrade pip RUN pip install wheel COPY . . RUN pip install -e . --extra-index-url https://pypi.chia.net/simple/ VOLUME /root/.foxy-farmer VOLUME /root/.chia_keys CMD ["foxy-farmer"]