Gilbert Botchway commited on
Commit
dfb1910
1 Parent(s): df993a2

New Changes #

Browse files
Files changed (1) hide show
  1. Dockerfile.txt +6 -21
Dockerfile.txt CHANGED
@@ -1,26 +1,11 @@
1
- FROM python:3.9-slim
2
 
3
- WORKDIR /app
4
 
5
- RUN apt-get update && apt-get install -y \
6
- build-essential \
7
- curl \
8
- software-properties-common \
9
- git \
10
- && rm -rf /var/lib/apt/lists/*
11
 
12
- RUN git clone https://github.com/streamlit/streamlit-example.git .
13
 
14
- COPY requirements.txt .
15
 
16
- COPY sentimentappstreamlit.py .
17
-
18
- RUN pip3 install --upgrade pip
19
-
20
- RUN pip3 install -r requirements.txt
21
-
22
- EXPOSE 8501
23
-
24
- HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
25
-
26
- ENTRYPOINT ["streamlit", "run", "sentimentappstreamlit.py", "--server.port=8501", "--server.address=0.0.0.0"]
 
1
+ FROM python:3.9
2
 
3
+ WORKDIR /code
4
 
5
+ COPY ./requirements.txt /code/requirements.txt
 
 
 
 
 
6
 
7
+ RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
8
 
9
+ COPY . .
10
 
11
+ CMD ["panel", "serve", "/code/app.py", "--address", "0.0.0.0", "--port", "7860", "--allow-websocket-origin", "ghylb-Sentiment_app.hf.space"]