docker build optimization

This commit is contained in:
julesGoullee
2021-01-19 15:36:48 +04:00
parent edeaf96e0b
commit 4019565091
2 changed files with 7 additions and 7 deletions

View File

@@ -17,10 +17,12 @@ COPY docker_build_helpers/* /tmp/
RUN cd /tmp && /tmp/install_ta-lib.sh && rm -r /tmp/*ta-lib*
ENV LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
COPY . /jesse-docker
# Install dependencies
COPY requirements.txt /jesse-docker
RUN pip3 install -r requirements.txt
# Install dependencies and Build
# Build
COPY . /jesse-docker
RUN pip3 install -e .
WORKDIR /home
RUN rm -r /jesse-docker

View File

@@ -17,14 +17,12 @@ COPY docker_build_helpers/* /tmp/
RUN cd /tmp && /tmp/install_ta-lib.sh && rm -r /tmp/*ta-lib*
ENV LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
COPY requirements.txt /jesse-docker
# Install dependencies
COPY requirements.txt /jesse-docker
RUN pip3 install -r requirements.txt
COPY . /jesse-docker
# Build
COPY . /jesse-docker
RUN pip3 install -e .
ENTRYPOINT pytest --cov=./ # && codecov