-
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.
feat: upgrade to python3.12 and remove requirements.txt files in favo…
…ur of poetry
- Loading branch information
1 parent
2fcab4f
commit 07e210b
Showing
13 changed files
with
169 additions
and
1,678 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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,13 +1,11 @@ | ||
FROM python:3.10-slim | ||
FROM python:3.12-slim | ||
|
||
# Set environment variables | ||
ENV PYTHONUNBUFFERED=1 \ | ||
PYTHONDONTWRITEBYTECODE=1 \ | ||
PYTHONPATH=/app/portfolio_analytics | ||
|
||
# Add labels | ||
LABEL maintainer="[email protected]" \ | ||
version="1.0" \ | ||
description="Portfolio Analytics API" | ||
|
||
# Install curl for healthcheck | ||
|
@@ -19,11 +17,12 @@ RUN groupadd -r appuser && useradd -r -g appuser appuser | |
WORKDIR /app | ||
|
||
# Install dependencies | ||
COPY portfolio_analytics/api/requirements.txt ./requirements.txt | ||
RUN pip install -r requirements.txt | ||
COPY pyproject.toml ./pyproject.toml | ||
RUN python3.12 -m pip install poetry==1.8.5 && \ | ||
poetry config virtualenvs.create false && \ | ||
poetry install --with=api | ||
|
||
# Copy source code to the container | ||
COPY pyproject.toml ./pyproject.toml | ||
COPY portfolio_analytics/common/utils portfolio_analytics/common/utils | ||
COPY portfolio_analytics/api portfolio_analytics/api | ||
|
||
|
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,4 +1,4 @@ | ||
FROM python:3.10-slim | ||
FROM python:3.12-slim | ||
|
||
# Set environment variables | ||
ENV PYTHONUNBUFFERED=1 \ | ||
|
@@ -7,7 +7,6 @@ ENV PYTHONUNBUFFERED=1 \ | |
|
||
# Add labels | ||
LABEL maintainer="[email protected]" \ | ||
version="1.0" \ | ||
description="Portfolio Analytics Dashboard" | ||
|
||
# Install curl for healthcheck | ||
|
@@ -19,11 +18,12 @@ RUN groupadd -r appuser && useradd -r -g appuser appuser | |
WORKDIR /app | ||
|
||
# Install dependencies | ||
COPY portfolio_analytics/dashboard/requirements.txt ./requirements.txt | ||
RUN pip install -r requirements.txt | ||
COPY pyproject.toml ./pyproject.toml | ||
RUN python3.12 -m pip install poetry==1.8.5 && \ | ||
poetry config virtualenvs.create false && \ | ||
poetry install --with=dashboard | ||
|
||
# Copy source code to the container | ||
COPY pyproject.toml ./pyproject.toml | ||
COPY portfolio_analytics/common/utils portfolio_analytics/common/utils | ||
COPY portfolio_analytics/dashboard portfolio_analytics/dashboard | ||
|
||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.