enot2t commited on
Commit ·
e9f21cd
1
Parent(s): 938b874
ml_flask
Browse files- Dockerfile +6 -2
Dockerfile
CHANGED
|
@@ -4,8 +4,12 @@ WORKDIR /code
|
|
| 4 |
|
| 5 |
COPY ./requirements.txt /code/requirements.txt
|
| 6 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
| 8 |
|
| 9 |
-
COPY .
|
| 10 |
|
| 11 |
-
CMD ["gunicorn", "-b", "0.0.0.0:
|
|
|
|
| 4 |
|
| 5 |
COPY ./requirements.txt /code/requirements.txt
|
| 6 |
|
| 7 |
+
RUN pip install gunicorn
|
| 8 |
+
|
| 9 |
+
RUN pip install flask
|
| 10 |
+
|
| 11 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
| 12 |
|
| 13 |
+
COPY . /code
|
| 14 |
|
| 15 |
+
CMD ["gunicorn", "-w", "4", "-b", "0.0.0.0:8080", "main:app"]
|