Commit
·
bc036d8
1
Parent(s):
db8ca8f
updated docker
Browse files- Dockerfile +2 -15
Dockerfile
CHANGED
@@ -4,7 +4,6 @@ FROM nvidia/cuda:12.3.2-cudnn9-devel-ubuntu22.04
|
|
4 |
# Install system dependencies for Python and Poetry
|
5 |
RUN apt-get update && apt-get install -y \
|
6 |
python3 python3-pip python3-venv build-essential curl git \
|
7 |
-
libpango-1.0-0 libcairo2 libgdk-pixbuf2.0-0 libgobject-2.0-0 libffi-dev \
|
8 |
&& rm -rf /var/lib/apt/lists/*
|
9 |
|
10 |
# Install Poetry globally
|
@@ -27,6 +26,8 @@ RUN poetry install --no-interaction --no-ansi \
|
|
27 |
&& pip install --no-build-isolation flash-attn \
|
28 |
&& pip install "rerankers[all]"
|
29 |
|
|
|
|
|
30 |
RUN useradd -m -u 1000 user
|
31 |
USER user
|
32 |
ENV HOME /home/user
|
@@ -38,21 +39,7 @@ RUN mkdir app
|
|
38 |
WORKDIR $HOME/app
|
39 |
COPY . $HOME/app
|
40 |
|
41 |
-
# Expose a port if needed (update according to your application)
|
42 |
-
#EXPOSE 8501
|
43 |
-
#
|
44 |
-
#CMD streamlit run app.py \
|
45 |
-
# --server.headless true \
|
46 |
-
# --server.enableCORS false \
|
47 |
-
# --server.enableXsrfProtection false \
|
48 |
-
# --server.fileWatcherType none
|
49 |
|
50 |
EXPOSE 7860
|
51 |
|
52 |
CMD ["streamlit", "run", "app.py", "--server.address=0.0.0.0", "--server.port=7860"]
|
53 |
-
|
54 |
-
#EXPOSE 8501
|
55 |
-
#
|
56 |
-
#HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
|
57 |
-
#
|
58 |
-
#ENTRYPOINT ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]
|
|
|
4 |
# Install system dependencies for Python and Poetry
|
5 |
RUN apt-get update && apt-get install -y \
|
6 |
python3 python3-pip python3-venv build-essential curl git \
|
|
|
7 |
&& rm -rf /var/lib/apt/lists/*
|
8 |
|
9 |
# Install Poetry globally
|
|
|
26 |
&& pip install --no-build-isolation flash-attn \
|
27 |
&& pip install "rerankers[all]"
|
28 |
|
29 |
+
RUN pip install weasyprint
|
30 |
+
|
31 |
RUN useradd -m -u 1000 user
|
32 |
USER user
|
33 |
ENV HOME /home/user
|
|
|
39 |
WORKDIR $HOME/app
|
40 |
COPY . $HOME/app
|
41 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
42 |
|
43 |
EXPOSE 7860
|
44 |
|
45 |
CMD ["streamlit", "run", "app.py", "--server.address=0.0.0.0", "--server.port=7860"]
|
|
|
|
|
|
|
|
|
|
|
|