grkavi0912 commited on
Commit
db99a17
·
verified ·
1 Parent(s): 95c197f

Upload Dockerfile with huggingface_hub

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -4
Dockerfile CHANGED
@@ -1,10 +1,11 @@
 
1
  # Use a lightweight Python image
2
  FROM python:3.9-slim
3
 
4
  # Set working directory
5
  WORKDIR /app
6
 
7
- # Copy and install dependencies
8
  COPY requirements.txt .
9
  RUN pip install --no-cache-dir -r requirements.txt
10
 
@@ -12,11 +13,11 @@ RUN pip install --no-cache-dir -r requirements.txt
12
  # Assuming these files are located at the root of the uploaded content
13
  COPY app.py .
14
  COPY random_forest_pipeline.joblib .
15
- COPY streamlit_app.py . # Assuming your Streamlit app file is named streamlit_app.py
16
 
17
- # Expose ports (Flask via Gunicorn)
 
18
  EXPOSE 5000
19
- # Default Streamlit port
20
  EXPOSE 8501
21
 
22
  # Start Flask (Gunicorn) and Streamlit together
 
1
+ # syntax=docker/dockerfile:1
2
  # Use a lightweight Python image
3
  FROM python:3.9-slim
4
 
5
  # Set working directory
6
  WORKDIR /app
7
 
8
+ # Copy requirements and install
9
  COPY requirements.txt .
10
  RUN pip install --no-cache-dir -r requirements.txt
11
 
 
13
  # Assuming these files are located at the root of the uploaded content
14
  COPY app.py .
15
  COPY random_forest_pipeline.joblib .
16
+ COPY streamlit_app.py .
17
 
18
+
19
+ # Expose ports (Flask via Gunicorn, Streamlit)
20
  EXPOSE 5000
 
21
  EXPOSE 8501
22
 
23
  # Start Flask (Gunicorn) and Streamlit together