boyinfuture commited on
Commit
cb4a732
·
1 Parent(s): 55512d8

deplyment phase

Browse files
Files changed (1) hide show
  1. backend/Dockerfile +20 -1
backend/Dockerfile CHANGED
@@ -1,3 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  FROM python:3.11-slim
2
 
3
  WORKDIR /code
@@ -9,4 +25,7 @@ RUN pip install --no-cache-dir --upgrade -r requirements.txt
9
 
10
  COPY ./ml_models /code/sentiment_model
11
 
12
- WORKDIR /code/app
 
 
 
 
1
+ # FROM python:3.11-slim
2
+
3
+ # WORKDIR /code
4
+
5
+ # RUN apt-get update && apt-get install -y git
6
+
7
+ # COPY ./backend/requirements.txt .
8
+ # RUN pip install --no-cache-dir --upgrade -r requirements.txt
9
+
10
+ # COPY ./ml_models /code/sentiment_model
11
+
12
+ # WORKDIR /code/app
13
+
14
+
15
+
16
+
17
  FROM python:3.11-slim
18
 
19
  WORKDIR /code
 
25
 
26
  COPY ./ml_models /code/sentiment_model
27
 
28
+ WORKDIR /code/app
29
+
30
+ # This is the default command for our web server
31
+ CMD ["python", "-m", "uvicorn", "main:app", "--host", "0.0.0.0", "--port", "10000"]