progress
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
FROM python:3.12-slim
|
||||
|
||||
ARG FROM_DIR=docker_dev/market_data/crypto_md_day
|
||||
|
||||
COPY ${FROM_DIR}/requirements.txt /
|
||||
|
||||
|
||||
COPY cvttpy /cvttpy
|
||||
COPY ${FROM_DIR}/crypto_md_day.sh /crypto_md_day.sh
|
||||
|
||||
RUN pip install --upgrade pip --root-user-action=ignore
|
||||
RUN pip install -r /requirements.txt --root-user-action=ignore
|
||||
|
||||
RUN apt-get update && apt-get install -y \
|
||||
libpq-dev \
|
||||
build-essential
|
||||
RUN apt-get update && apt-get install -y rsync openssh-client
|
||||
|
||||
COPY docker_dev/shared/id_rsa /root/.ssh/id_rsa
|
||||
COPY docker_dev/shared/id_rsa.pub /root/.ssh/id_rsa.pub
|
||||
|
||||
RUN chmod 600 /root/.ssh/id_rsa /root/.ssh/id_rsa.pub
|
||||
|
||||
|
||||
# Shared Volumes
|
||||
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" ]
|
||||
|
||||
Reference in New Issue
Block a user