This commit is contained in:
2024-07-22 17:52:12 -04:00
parent 0b437a1d60
commit 7cdf741758
8 changed files with 238 additions and 155 deletions
+6 -8
View File
@@ -1,7 +1,5 @@
FROM python:3.10-slim
WORKDIR /
SHELL ["/bin/bash", "-c"]
COPY docker_dev/crypto_md_day/requirements.txt /
RUN pip install --upgrade pip --root-user-action=ignore
@@ -11,12 +9,11 @@ COPY cvttpy /cvttpy
COPY docker_dev/crypto_md_day/.creds /.creds
COPY docker_dev/crypto_md_day/crypto_md_day.sh /crypto_md_day.sh
# RUN apt install openssh-client -y
RUN apt-get update && apt-get install -y --no-install-recommends rsync openssh-client && rm -rf /var/lib/apt/lists/*
COPY docker_dev/crypto_md_day/id_rsa /root/.ssh/id_rsa
COPY docker_dev/crypto_md_day/id_rsa.pub /root/.ssh/id_rsa.pub
COPY docker_dev/crypto_md_day/known_hosts /root/.ssh/known_hosts
COPY docker_dev/shared/id_rsa /root/.ssh/id_rsa
COPY docker_dev/shared/id_rsa.pub /root/.ssh/id_rsa.pub
COPY docker_dev/shared/known_hosts /root/.ssh/known_hosts
RUN chmod 600 /root/.ssh/id_rsa /root/.ssh/id_rsa.pub /root/.ssh/known_hosts
@@ -26,7 +23,8 @@ RUN mkdir -p /app/data
RUN mkdir /logs
RUN chmod +x /crypto_md_day.sh
WORKDIR /
SHELL ["/bin/bash", "-c"]
ENV PYTHONPATH=/
ENTRYPOINT [ "/crypto_md_day.sh" ]
ENV PYTHONPATH=/
CMD [ "echo", "crypto_md_day"]