-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f9c27a3
commit 2b34590
Showing
1 changed file
with
22 additions
and
0 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,22 @@ | ||
FROM python:3.10.12-slim | ||
|
||
WORKDIR /app | ||
|
||
RUN apt-get update && apt-get install -y \ | ||
libgl1-mesa-glx \ | ||
libglib2.0-0 \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
COPY . /app | ||
|
||
RUN chmod +x run.sh | ||
|
||
RUN pip install --no-cache-dir -r requirements.txt | ||
RUN pip uninstall uvcorn | ||
RUN mkdir ../images | ||
|
||
EXPOSE 8000 | ||
|
||
ENV WORKERS=1 | ||
|
||
CMD ["./run.sh"] |