Add entrypoint
This commit is contained in:
14
Dockerfile
14
Dockerfile
@@ -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"]
|
Reference in New Issue
Block a user