Add entrypoint

This commit is contained in:
2025-09-13 13:41:47 +02:00
parent 9edf853393
commit 985d1ba0c8
2 changed files with 51 additions and 3 deletions

View File

@@ -1,8 +1,16 @@
FROM python:3.11-slim
WORKDIR /duino-coin/
RUN useradd -m -s /bin/bash duco && \
chown duco:duco -R /duino-coin/
USER duco
COPY duino-coin/requirements.txt duino-coin/PC_miner.py .
RUN pip install --no-cache-dir -r requirements.txt
COPY --chown=duco:duco duino-coin/requirements.txt duino-coin/PC_Miner.py entrypoint.sh ./
CMD ["python", "PC_miner.py"]
ENV PATH="/home/duco/.local/bin:${PATH}"
RUN python3 -m pip install --upgrade pip --user && \
pip install --no-cache-dir -r requirements.txt && \
chmod +x /duino-coin/entrypoint.sh
ENTRYPOINT [ "/duino-coin/entrypoint.sh" ]
CMD ["python", "PC_Miner.py"]