-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
23 lines (16 loc) · 864 Bytes
/
Dockerfile
File metadata and controls
23 lines (16 loc) · 864 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Step 1: Use an official Python runtime as a parent image
FROM python:3.9-slim
# Step 2: Set the working directory in the container
WORKDIR /app
# Step 3: Copy the current directory contents into the container at /app
COPY . /app
# Step 4: Install dependencies
RUN pip install --no-cache-dir -r requirements.txt
# To allow running different scripts via command line
CMD ["python", "models/ml_model.py"]
# To run the other, you could override the command during `docker run`
# docker run hepsiburadacasestudy python models/llm_model.py
# Note: The llm_model.py script may not work as intended because it relies on accessing
# the Ollama API and LLM model, which were used locally during development but could not
# be bound to the Docker container. You may encounter issues with accessing these resources
# when running the script within the container.