jrno commited on
Commit
5f1a862
β€’
1 Parent(s): 8921edd

refactor api to recommendation-api

Browse files
Dockerfile CHANGED
@@ -1,5 +1,13 @@
1
  FROM python:3.10.9-slim
 
2
  WORKDIR /app
3
- COPY . .
 
 
 
 
 
4
  RUN pip install -r requirements.txt
 
 
5
  CMD ["python", "server.py"]
 
1
  FROM python:3.10.9-slim
2
+
3
  WORKDIR /app
4
+
5
+ COPY recommendation-api .
6
+ COPY data/music_info.csv data/music_info.csv
7
+ COPY data/user_listening_history_10k.csv data/user_listening_history_10k.csv
8
+
9
+ # Install dependencies from the requirements.txt file located within the recommendation-api directory
10
  RUN pip install -r requirements.txt
11
+
12
+ # Command to run the server, assuming server.py is inside the recommendation-api directory
13
  CMD ["python", "server.py"]
custom_models.py β†’ recommendation-api/custom_models.py RENAMED
File without changes
model.pkl β†’ recommendation-api/model.pkl RENAMED
File without changes
recommender.py β†’ recommendation-api/recommender.py RENAMED
File without changes
requirements.txt β†’ recommendation-api/requirements.txt RENAMED
File without changes
server.py β†’ recommendation-api/server.py RENAMED
File without changes
tracks.py β†’ recommendation-api/tracks.py RENAMED
File without changes