Skip to content

Commit 0eebecc

Browse files
committed
Reoslve #18: Add Dockerfile
1 parent f679e1d commit 0eebecc

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

Dockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
FROM python:3
2+
RUN pip install -U scikit-learn && pip install Flask
3+
WORKDIR /app
4+
COPY . /app
5+
EXPOSE 5000
6+
CMD python app.py

app.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,6 @@ def windRegression(data):
2424
def kmeansClustering(data):
2525
param = data.split('&')
2626
return kmeansRides.clusterActivities(param[0], int(param[1]))
27+
28+
if __name__ == '__main__':
29+
app.run(host='0.0.0.0', port=5000)

start.sh

100644100755
File mode changed.

0 commit comments

Comments
 (0)