25 lines
530 B
Docker
25 lines
530 B
Docker
FROM python:3.12-slim
|
|
|
|
WORKDIR /app
|
|
|
|
# System deps for asyncpg and cryptography
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
gcc libpq-dev && \
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
COPY requirements.txt .
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
COPY entrypoint.sh /entrypoint.sh
|
|
RUN chmod +x /entrypoint.sh
|
|
|
|
COPY spore_node/ ./spore_node/
|
|
|
|
# Data directory for koi-net cache + keys
|
|
RUN mkdir -p /data
|
|
|
|
EXPOSE 8351
|
|
|
|
ENTRYPOINT ["/entrypoint.sh"]
|
|
CMD ["python", "-m", "spore_node", "--standalone"]
|