Spaces:
Sleeping
Sleeping
jjovalle
commited on
Commit
·
9177ee8
1
Parent(s):
32efd97
dockerfile
Browse files- Dockerfile +13 -0
Dockerfile
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM python:3.11.6-slim
|
2 |
+
RUN useradd -m docuquery2
|
3 |
+
USER docuquery2
|
4 |
+
ENV HOME=/home/docuquery2 \
|
5 |
+
PATH=/home/docuquery2/.local/bin:$PATH \
|
6 |
+
POETRY_VIRTUALENVS_IN_PROJECT=true
|
7 |
+
WORKDIR /app
|
8 |
+
COPY --chown=docuquery2 ./ ./
|
9 |
+
RUN pip install poetry --no-cache-dir && \
|
10 |
+
poetry install --only main --no-root --no-cache --no-interaction \
|
11 |
+
--no-ansi --no-cache
|
12 |
+
EXPOSE 7860
|
13 |
+
CMD [ "poetry", "run", "chainlit", "run", "app.py", "--port", "7860"]
|