Spaces:
Sleeping
Sleeping
changing config
Browse files- Dockerfile +1 -9
Dockerfile
CHANGED
@@ -1,23 +1,15 @@
|
|
1 |
-
FROM python:3.
|
2 |
|
3 |
-
# Create a non-root user for security
|
4 |
RUN useradd -m -u 1000 user
|
5 |
-
|
6 |
USER user
|
7 |
-
|
8 |
-
# Ensure pip-installed binaries in ~/.local/bin are accessible
|
9 |
ENV PATH="/home/user/.local/bin:$PATH"
|
10 |
|
11 |
-
# Set working directory
|
12 |
WORKDIR /app
|
13 |
|
14 |
# Copy requirements and install
|
15 |
COPY --chown=user ./requirements.txt requirements.txt
|
16 |
-
|
17 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
18 |
|
19 |
COPY --chown=user . /app
|
20 |
|
21 |
-
EXPOSE 7860
|
22 |
-
|
23 |
CMD ["chainlit", "run", "app.py", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
1 |
+
FROM python:3.13
|
2 |
|
|
|
3 |
RUN useradd -m -u 1000 user
|
|
|
4 |
USER user
|
|
|
|
|
5 |
ENV PATH="/home/user/.local/bin:$PATH"
|
6 |
|
|
|
7 |
WORKDIR /app
|
8 |
|
9 |
# Copy requirements and install
|
10 |
COPY --chown=user ./requirements.txt requirements.txt
|
|
|
11 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
12 |
|
13 |
COPY --chown=user . /app
|
14 |
|
|
|
|
|
15 |
CMD ["chainlit", "run", "app.py", "--host", "0.0.0.0", "--port", "7860"]
|