deepali1021 commited on
Commit
7688816
·
1 Parent(s): bd37926

removed app.py

Browse files
Files changed (3) hide show
  1. app.py +0 -4
  2. backup_Dockerfile +23 -0
  3. uv.lock +0 -0
app.py DELETED
@@ -1,4 +0,0 @@
1
- import streamlit as st
2
-
3
- x = st.slider('Select a value')
4
- st.write(x, 'squared is', x * x)
 
 
 
 
 
backup_Dockerfile ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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"]
uv.lock ADDED
The diff for this file is too large to render. See raw diff