Spaces:
Runtime error
Runtime error
Gilbert Botchway commited on
Commit ·
dfb1910
1
Parent(s): df993a2
New Changes #
Browse files- Dockerfile.txt +6 -21
Dockerfile.txt
CHANGED
|
@@ -1,26 +1,11 @@
|
|
| 1 |
-
FROM python:3.9
|
| 2 |
|
| 3 |
-
WORKDIR /
|
| 4 |
|
| 5 |
-
|
| 6 |
-
build-essential \
|
| 7 |
-
curl \
|
| 8 |
-
software-properties-common \
|
| 9 |
-
git \
|
| 10 |
-
&& rm -rf /var/lib/apt/lists/*
|
| 11 |
|
| 12 |
-
RUN
|
| 13 |
|
| 14 |
-
COPY
|
| 15 |
|
| 16 |
-
|
| 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"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|