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