-
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.
Try Dockerfile based on requirements_simple.txt
- Loading branch information
Showing
4 changed files
with
26 additions
and
11 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,16 +1,11 @@ | ||
FROM python:3.10 | ||
|
||
# Install dependencies in a single layer and clean up in the same RUN to reduce image size | ||
RUN python -m pip install --upgrade pip && \ | ||
pip install flake8 pytest && \ | ||
rm -rf /var/lib/apt/lists/* | ||
FROM python:3.10-slim | ||
|
||
# Set the working directory to /app | ||
WORKDIR /app | ||
|
||
# First, copy only requirements.txt and install Python dependencies to leverage Docker cache | ||
COPY requirements.txt . | ||
RUN if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | ||
COPY requirements_simple.txt requirements.txt | ||
RUN if [ -f requirements.txt ]; then pip install --no-cache-dir -r requirements.txt; fi | ||
|
||
# Then copy the rest of the application | ||
COPY . . |
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#jupyter # to run notebooks | ||
#torch | ||
#hyperopt | ||
#pytest | ||
#mpld3 | ||
#statsmodels | ||
pandas | ||
numpy | ||
matplotlib | ||
#scikit-learn # import sklearn | ||
scipy | ||
pyprojroot | ||
PyYAML # import yaml | ||
streamlit | ||
# pyarrow # import pyarrow.parquet as pq | ||
boto3 # For AWS services, like S3 and EC2 | ||
python-dotenv # from dotenv import load_dotenv; load_dotenv() | ||
awswrangler # import awswrangler as wr | ||
s3fs # Necessary for pandas to read/write from/to S3 | ||
# For GitHub actions | ||
flake8 | ||
pytest |
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