-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MyApps][ynab-010][feature: Upgrading to python3.10 and restart Docker]
modified: app/Dockerfile modified: app/docker-compose.yml modified: app/miscellaneous/key_bash_commands.txt modified: app/requirements.txt modified: app/root.py modified: app/utils/budget_import.py
- Loading branch information
Showing
6 changed files
with
47 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,24 @@ | ||
FROM python:3.8.10-slim | ||
FROM python:3.10-slim | ||
|
||
RUN apt-get update | ||
RUN apt-get update && apt-get install -y \ | ||
build-essential \ | ||
libpq-dev \ | ||
&& apt-get clean | ||
|
||
WORKDIR /app | ||
|
||
COPY /requirements.txt /app/requirements.txt | ||
|
||
RUN pip install --upgrade pip | ||
RUN pip3 install --upgrade pip | ||
|
||
RUN pip install --no-cache-dir --upgrade -r /app/requirements.txt | ||
RUN pip install --no-cache-dir --index-url=https://pypi.org/simple --upgrade -r /app/requirements.txt | ||
|
||
COPY /data ./data | ||
|
||
COPY /logging/config.yaml ./logging/config.yaml | ||
COPY /utils ./utils | ||
|
||
COPY /routes ./routes | ||
|
||
COPY /resources ./resources | ||
|
||
COPY /root.py /app/root.py | ||
|
||
COPY /main.py /app/main.py | ||
|
||
CMD ["uvicorn","main:app","--host","0.0.0.0","--port","80"] | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
version: '3' | ||
services: | ||
fast-api-ynab: | ||
volumes: | ||
- /Users/camilamv/BudgetYNABProgram/app/data/:/app/data/ | ||
build: ./ | ||
restart: unless-stopped | ||
ports: | ||
- "8225:80" | ||
volumes: | ||
- /Users/camilamv/BudgetYNABProgram/app/data/:/app/data/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,11 @@ | ||
chardet==4.0.0 | ||
fastapi==0.89.1 | ||
numpy==1.22.2 | ||
pandas==1.4.1 | ||
pydantic==1.9.1 | ||
chardet | ||
fastapi | ||
numpy | ||
pandas | ||
pydantic | ||
starlette | ||
uvicorn==0.17.6 | ||
uvicorn | ||
python-multipart | ||
pipreqs | ||
pytest | ||
pyyaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters