File tree 3 files changed +14
-3
lines changed
3 files changed +14
-3
lines changed Original file line number Diff line number Diff line change 2
2
spam-classifier /
3
3
zips /
4
4
ignored /
5
+ models /
5
6
* .pkl
6
7
Original file line number Diff line number Diff line change 1
1
FROM python:3.7-slim
2
2
3
- COPY ./app ./app/app
4
- COPY ./requirements.txt ./app/requirements.txt
3
+ COPY ./app /app/app
4
+ COPY ./.env /app/.env
5
+ COPY ./models /app/models
6
+ COPY ./entry_point.sh /app/entry_point.sh
7
+ COPY ./requirements.txt /app/requirements.txt
5
8
6
9
WORKDIR /app
7
10
@@ -23,4 +26,6 @@ RUN apt-get autoremove -y \
23
26
24
27
RUN virtualenv -p python3 ./env
25
28
26
- RUN ./env/bin/python3 -m pip install -r requirements.txt
29
+ RUN ./env/bin/python3 -m pip install -r requirements.txt
30
+
31
+ CMD [ "entry_point.sh" ]
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ RUN_PORT=${PORT:- 8989}
4
+
5
+ /app/.env/bin/gunicorn --worker-tmp-dir /dev/shm -k uvicorn.workers.UvicornWorker --bind " 0.0.0.0:${RUN_PORT} "
You can’t perform that action at this time.
0 commit comments