Logging for python files
This commit is contained in:
@ -1,10 +1,10 @@
|
||||
FROM continuumio/miniconda3 as build
|
||||
|
||||
WORKDIR /app
|
||||
WORKDIR /app/
|
||||
|
||||
COPY ./python /app/src
|
||||
COPY ./python/ /app/src/
|
||||
|
||||
RUN conda env create -f src/environment.yml
|
||||
RUN conda env create -f ./src/environment.yml
|
||||
|
||||
#RUN echo "conda activate cryptos" >> ~/.bashrc
|
||||
#SHELL ["/bin/bash", "--login", "-c"]
|
||||
@ -12,7 +12,7 @@ RUN conda env create -f src/environment.yml
|
||||
RUN conda install -c conda-forge conda-pack
|
||||
|
||||
RUN conda pack -n cryptos -o /tmp/env.tar && \
|
||||
mkdir /venv && cd /venv && tar xf /tmp/env.tar && \
|
||||
mkdir /venv/ && cd /venv/ && tar xf /tmp/env.tar && \
|
||||
rm /tmp/env.tar
|
||||
|
||||
RUN /venv/bin/conda-unpack
|
||||
@ -20,18 +20,18 @@ RUN /venv/bin/conda-unpack
|
||||
|
||||
FROM python:buster as runtime
|
||||
|
||||
WORKDIR /app
|
||||
WORKDIR /app/
|
||||
|
||||
COPY ./python /app/src
|
||||
COPY ./api/bin /app/bin
|
||||
COPY ./python/ /app/src/
|
||||
COPY ./automation/bin/ /app/bin/
|
||||
|
||||
COPY --from=build /venv /venv
|
||||
COPY --from=build /venv/ /venv/
|
||||
|
||||
SHELL ["/bin/bash", "-c"]
|
||||
|
||||
RUN pip install pyinstaller
|
||||
|
||||
RUN pyinstaller -F -n coingecko --clean --log-level DEBUG --distpath /app/bin /app/src/coingecko.py && \
|
||||
pyinstaller -F -n mindicador --clean --log-level DEBUG --distpath /app/bin /app/src/miindicador.py
|
||||
RUN pyinstaller -F -n coingecko --clean --log-level DEBUG --distpath /app/bin/ /app/src/coingecko.py && \
|
||||
pyinstaller -F -n mindicador --clean --log-level DEBUG --distpath /app/bin/ /app/src/miindicador.py
|
||||
|
||||
ENTRYPOINT [ "/bin/bash" ]
|
||||
|
Reference in New Issue
Block a user