33 lines
950 B
Docker
33 lines
950 B
Docker
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
|
|
RUN pip install -r /requirements.txt --root-user-action=ignore
|
|
|
|
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
|
|
|
|
RUN chmod 600 /root/.ssh/id_rsa /root/.ssh/id_rsa.pub /root/.ssh/known_hosts
|
|
|
|
|
|
# Shared Volumes
|
|
RUN mkdir -p /app/data
|
|
RUN mkdir /logs
|
|
RUN chmod +x /crypto_md_day.sh
|
|
|
|
ENTRYPOINT [ "/crypto_md_day.sh" ]
|
|
|
|
ENV PYTHONPATH=/
|
|
CMD [ "echo", "crypto_md_day"]
|