File size: 554 Bytes
98cd6e7 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
FROM --platform=linux/amd64 tensorflow/tensorflow:2.12.0
WORKDIR /bert_sentiment_classifier
ARG UID=1000
ARG GID=1000
RUN groupadd -g "${GID}" python \
&& useradd --create-home --no-log-init -u "${UID}" -g "${GID}" python \
&& chown python:python -R /bert_sentiment_classifier
USER python
COPY --chown=python:python ./requirements.txt ./
RUN pip install --no-cache-dir --user -r requirements.txt
COPY --chown=python:python . .
EXPOSE 8501
CMD ["streamlit", "run", "sentiment_analysis.py", , "--server.port=8501", "--server.address=0.0.0.0"]
|