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"]