-
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #258 from MAYANK12SHARMA/main
Upgrade Python Version and Update Dependencies for Compatibility and Deprecation Fixes
- Loading branch information
Showing
7 changed files
with
58 additions
and
54 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
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,21 +1,27 @@ | ||
# code from a streamlit app Peter made. the commands should be relevant to what I'm doing but stuff inside | ||
# Use Python 3.12 slim image | ||
FROM python:3.12-slim | ||
|
||
FROM python:3.11-slim | ||
|
||
# install unzip | ||
RUN apt-get update && apt-get install -y unzip libpq-dev gcc | ||
# Install necessary system packages | ||
RUN apt-get update && apt-get install -y --no-install-recommends \ | ||
unzip \ | ||
libpq-dev \ | ||
gcc \ | ||
&& apt-get clean && rm -rf /var/lib/apt/lists/* | ||
|
||
# Set the working directory | ||
WORKDIR /app | ||
# copy everything in to the app folder (which we're already in) | ||
|
||
COPY requirements.txt requirements.txt | ||
# start building the environment that the app will run in | ||
RUN pip3 install -r requirements.txt | ||
# Copy requirements.txt and install dependencies | ||
COPY requirements.txt . | ||
RUN pip install --no-cache-dir -r requirements.txt | ||
|
||
# Copy the application source code | ||
COPY src . | ||
# this the port that will be used in the container like here locally | ||
|
||
# Expose the necessary ports | ||
EXPOSE 8501 | ||
|
||
EXPOSE 5433 | ||
#runs the command I'd run to start the app -- these are called "flags" and they're like arguments but they're not | ||
CMD ["streamlit", "run", "main.py", "--server.port=8501", "--browser.serverAddress=0.0.0.0", "--server.address=0.0.0.0", "–server.enableCORS False"] | ||
|
||
# Run the Streamlit app | ||
CMD ["streamlit", "run", "main.py", "--server.port=8501", "--server.address=0.0.0.0", "--browser.serverAddress=0.0.0.0", "--server.enableCORS=False"] |
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,24 +1,22 @@ | ||
altair==4.2.2 | ||
requests<2.32.0 | ||
nowcasting_datamodel==1.5.42 | ||
pvsite-datamodel==1.0.45 | ||
numpy==1.24.1 | ||
pandas==1.5.3 | ||
plotly==5.10.0 | ||
psycopg2-binary==2.9.5 | ||
SQLAlchemy==2.0.29 | ||
streamlit==1.27.2 | ||
testcontainers==3.2.0 | ||
uvicorn==0.23.2 | ||
geopandas==0.14.2 | ||
altair==5.5.0 | ||
requests==2.32.3 | ||
nowcasting_datamodel==1.5.56 | ||
pvsite-datamodel==1.0.47 | ||
numpy==2.0.0 | ||
pandas==2.2.3 | ||
plotly==5.24.1 | ||
psycopg2-binary==2.9.10 | ||
SQLAlchemy==2.0.36 | ||
streamlit==1.41.1 | ||
testcontainers==4.9.0 | ||
uvicorn==0.34.0 | ||
geopandas==1.0.1 | ||
garrett-streamlit-auth0==0.9 | ||
pydantic==2.5.3 | ||
xarray==2023.5.0 | ||
fsspec==2024.2.0 | ||
s3fs==2024.2.0 | ||
ocf_blosc2==0.0.4 | ||
zarr==2.14.2 | ||
elexonpy | ||
fiona==1.9.6 | ||
psycopg2-binary | ||
herbie-data | ||
xarray==2025.1.0 | ||
fsspec==2024.12.0 | ||
s3fs==2024.12.0 | ||
ocf_blosc2==0.0.11 | ||
zarr==2.18.4 | ||
elexonpy==1.0.15 | ||
fiona==1.10.1 |
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