-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adds Docker file; removes unecessary data; optimize requirements
- Loading branch information
1 parent
703566b
commit 330004c
Showing
49 changed files
with
22 additions
and
5,873 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
FROM python:3.11-slim-bookworm | ||
|
||
EXPOSE 3000 | ||
|
||
USER api | ||
|
||
WORKDIR /code | ||
|
||
COPY ./requirements.txt /code/requirements.txt | ||
|
||
RUN apt-get update && \ | ||
apt-get install -y --no-install-recommends git && \ | ||
apt-get clean && \ | ||
rm -rf /var/lib/apt/lists/* && \ | ||
pip3 install --no-cache-dir --upgrade -r /code/requirements.txt && \ | ||
apt-get purge -y --auto-remove && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
COPY ./lib /code/lib | ||
|
||
CMD ["gunicorn", "-k", "uvicorn.workers.UvicornWorker", "lib:app", "-b", "0.0.0.0:3000"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.