Spaces:
Sleeping
Sleeping
Commit
·
7fc5c81
1
Parent(s):
7688816
deleted backup docker
Browse files- backup_Dockerfile +0 -23
backup_Dockerfile
DELETED
|
@@ -1,23 +0,0 @@
|
|
| 1 |
-
# MIKE DEAN ADAPTATION OF THE CHAINLIT DOCKERFILE USING UV
|
| 2 |
-
# December 31, 2024
|
| 3 |
-
# Get a distribution that has uv already installed
|
| 4 |
-
FROM ghcr.io/astral-sh/uv:python3.13-bookworm-slim
|
| 5 |
-
# Add user - this is the user that will run the app
|
| 6 |
-
# If you do not set user, the app will run as root (undesirable)
|
| 7 |
-
RUN useradd -m -u 1000 user
|
| 8 |
-
USER user
|
| 9 |
-
# Set the home directory and path
|
| 10 |
-
ENV HOME=/home/user \
|
| 11 |
-
PATH=/home/user/.local/bin:$PATH
|
| 12 |
-
# NEW ENV STATEMENT
|
| 13 |
-
ENV UVICORN_WS_PROTOCOL=websockets
|
| 14 |
-
# Set the working directory
|
| 15 |
-
WORKDIR $HOME/app
|
| 16 |
-
# Copy the app to the container
|
| 17 |
-
COPY --chown=user . $HOME/app
|
| 18 |
-
# Install the dependencies
|
| 19 |
-
RUN uv sync --frozen
|
| 20 |
-
# Expose the port
|
| 21 |
-
EXPOSE 7860
|
| 22 |
-
# Run the app
|
| 23 |
-
CMD ["uv", "run", "-m", "streamlit", "run", "Chatbot.py", "--server.address", "0.0.0.0", "--server.port", "7860"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|