Update dockerfile to fix streamlit not found errors
Browse files- Dockerfile +4 -13
Dockerfile
CHANGED
@@ -2,21 +2,12 @@ FROM --platform=linux/amd64 tensorflow/tensorflow:2.12.0
|
|
2 |
|
3 |
WORKDIR /bert_sentiment_classifier
|
4 |
|
5 |
-
|
6 |
-
ARG GID=1000
|
7 |
|
8 |
-
RUN
|
9 |
-
&& useradd --create-home --no-log-init -u "${UID}" -g "${GID}" python \
|
10 |
-
&& chown python:python -R /bert_sentiment_classifier
|
11 |
|
12 |
-
|
13 |
-
|
14 |
-
COPY --chown=python:python ./requirements.txt ./
|
15 |
-
|
16 |
-
RUN pip install --no-cache-dir --user -r requirements.txt
|
17 |
-
|
18 |
-
COPY --chown=python:python . .
|
19 |
|
20 |
EXPOSE 8501
|
21 |
|
22 |
-
CMD ["streamlit", "run", "sentiment_analysis.py",
|
|
|
2 |
|
3 |
WORKDIR /bert_sentiment_classifier
|
4 |
|
5 |
+
COPY ./requirements.txt ./
|
|
|
6 |
|
7 |
+
RUN pip install -r requirements.txt
|
|
|
|
|
8 |
|
9 |
+
COPY . .
|
|
|
|
|
|
|
|
|
|
|
|
|
10 |
|
11 |
EXPOSE 8501
|
12 |
|
13 |
+
CMD ["streamlit", "run", "sentiment_analysis.py", "--server.port=8501", "--server.address=0.0.0.0"]
|