use --no-cache-dir for docker build
use --no-cache can save about 90M ``` ➜ freqtrade git:(develop) ✗ docker images freq REPOSITORY TAG IMAGE ID CREATED SIZE freq latest b15db8341067 7 minutes ago 800MB ➜ freqtrade git:(develop) ✗ docker images freq_nocache REPOSITORY TAG IMAGE ID CREATED SIZE freq_nocache latest e5731f28ac54 20 seconds ago 709MB ```
This commit is contained in:
parent
3abc294e5f
commit
0a4b2f19e3
@ -15,11 +15,11 @@ RUN mkdir /freqtrade
|
|||||||
WORKDIR /freqtrade
|
WORKDIR /freqtrade
|
||||||
|
|
||||||
# Install dependencies
|
# Install dependencies
|
||||||
COPY requirements.txt /freqtrade/
|
COPY requirements.txt /freqtrade/
|
||||||
RUN pip install numpy \
|
RUN pip install numpy --no-cache-dir \
|
||||||
&& pip install -r requirements.txt
|
&& pip install -r requirements.txt --no-cache-dir
|
||||||
|
|
||||||
# Install and execute
|
# Install and execute
|
||||||
COPY . /freqtrade/
|
COPY . /freqtrade/
|
||||||
RUN pip install -e .
|
RUN pip install -e . --no-cache-dir
|
||||||
ENTRYPOINT ["freqtrade"]
|
ENTRYPOINT ["freqtrade"]
|
||||||
|
Loading…
Reference in New Issue
Block a user