knowledge_base:programming:docker

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
knowledge_base:programming:docker [2024/10/07 15:34] – [Tips for Hosting Docker Image on Synology] Normal Userknowledge_base:programming:docker [2025/03/01 22:42] (current) – [Create Dockerfile] Normal User
Line 25: Line 25:
 Tip: use ''.gitignore'' and ''.dockerignore'' file to exclude files you don't need Tip: use ''.gitignore'' and ''.dockerignore'' file to exclude files you don't need
  
 +[3/1/2025] - need to modify stock_info.py in the yahoo_fin package to fix data retrieving issue since Feb. 2025. Also need gcc for building Python Wheels
 +<code>
 +FROM python:3.12-slim
 +RUN apt-get update && apt-get install -y libpq-dev gcc
 +WORKDIR /app
 +COPY . /app
 +RUN pip install -U pip && pip install -r requirements.txt
 +ADD stock_info.py /usr/local/lib/python3.12/site-packages/yahoo_fin/
 +EXPOSE 8050
 +CMD ["python", "./indicators.py"]
 +</code>
 ===== Build, Test and Push ===== ===== Build, Test and Push =====
  
Line 158: Line 169:
  
  
 +=== get_data in yahoo_fin.stock_info not working ===
  
 +https://stackoverflow.com/questions/79453269/get-data-in-yahoo-fin-stock-info-not-working
  
  • Last modified: 2024/10/07 15:34
  • by Normal User