Spaces:
Runtime error
Runtime error
Inder-26 commited on
Commit ·
d3fa553
1
Parent(s): a912ff6
Optimize deployment config
Browse files- .dockerignore +41 -0
- Dockerfile +3 -0
- networksecurity/constant/training_pipeline/__init__.py +1 -1
.dockerignore
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
# Python
|
| 3 |
+
__pycache__/
|
| 4 |
+
*.py[cod]
|
| 5 |
+
*$py.class
|
| 6 |
+
*.so
|
| 7 |
+
.Python
|
| 8 |
+
build/
|
| 9 |
+
develop-eggs/
|
| 10 |
+
dist/
|
| 11 |
+
downloads/
|
| 12 |
+
eggs/
|
| 13 |
+
.eggs/
|
| 14 |
+
lib/
|
| 15 |
+
lib64/
|
| 16 |
+
parts/
|
| 17 |
+
sdist/
|
| 18 |
+
var/
|
| 19 |
+
wheels/
|
| 20 |
+
share/python-wheels/
|
| 21 |
+
*.egg-info/
|
| 22 |
+
.installed.cfg
|
| 23 |
+
*.egg
|
| 24 |
+
MANIFEST
|
| 25 |
+
|
| 26 |
+
# Virtual Environment
|
| 27 |
+
.env
|
| 28 |
+
.venv
|
| 29 |
+
env/
|
| 30 |
+
venv/
|
| 31 |
+
ENV/
|
| 32 |
+
|
| 33 |
+
# Project Specific (Heavy/Unnecessary for Docker)
|
| 34 |
+
Artifact/
|
| 35 |
+
Network_data/
|
| 36 |
+
mlruns/
|
| 37 |
+
deploy_stage/
|
| 38 |
+
final_model/
|
| 39 |
+
.git/
|
| 40 |
+
.github/
|
| 41 |
+
.vscode/
|
Dockerfile
CHANGED
|
@@ -14,6 +14,9 @@ COPY requirements.txt .
|
|
| 14 |
RUN pip install --no-cache-dir --upgrade pip && \
|
| 15 |
pip install --no-cache-dir -r requirements.txt
|
| 16 |
|
|
|
|
|
|
|
|
|
|
| 17 |
# Copy the rest of the application code
|
| 18 |
COPY . .
|
| 19 |
|
|
|
|
| 14 |
RUN pip install --no-cache-dir --upgrade pip && \
|
| 15 |
pip install --no-cache-dir -r requirements.txt
|
| 16 |
|
| 17 |
+
# Explicitly copy data_schema to ensure it exists
|
| 18 |
+
COPY data_schema ./data_schema
|
| 19 |
+
|
| 20 |
# Copy the rest of the application code
|
| 21 |
COPY . .
|
| 22 |
|
networksecurity/constant/training_pipeline/__init__.py
CHANGED
|
@@ -14,7 +14,7 @@ FILE_NAME: str = "phisingkData.csv"
|
|
| 14 |
TRAIN_FILE_NAME: str = "train.csv"
|
| 15 |
TEST_FILE_NAME: str = "test.csv"
|
| 16 |
|
| 17 |
-
SCHEMA_FILE_PATH = os.path.join(os.path.dirname(os.path.dirname(os.path.dirname(os.path.dirname(__file__)))), "data_schema", "schema.yaml")
|
| 18 |
|
| 19 |
SAVED_MODEL_DIR_NAME = os.path.join("saved_models")
|
| 20 |
MODEL_FILE_NAME: str = "model.pkl"
|
|
|
|
| 14 |
TRAIN_FILE_NAME: str = "train.csv"
|
| 15 |
TEST_FILE_NAME: str = "test.csv"
|
| 16 |
|
| 17 |
+
SCHEMA_FILE_PATH = os.path.join(os.path.dirname(os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))), "data_schema", "schema.yaml")
|
| 18 |
|
| 19 |
SAVED_MODEL_DIR_NAME = os.path.join("saved_models")
|
| 20 |
MODEL_FILE_NAME: str = "model.pkl"
|