diff --git a/Dockerfile b/Dockerfile index ac12712..c810fe1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,17 +8,18 @@ RUN apt-get update \ RUN useradd --create-home --uid 9000 nonroot USER nonroot - WORKDIR /home/nonroot/app COPY --chown=nonroot:nonroot . . ENV PATH="/home/nonroot/.local/bin:${PATH}" RUN python3 -m pip install --user pipenv RUN pipenv install +USER root RUN apt-get remove -y --purge make gcc build-essential \ && apt-get auto-remove -y \ && rm -rf /var/lib/apt/lists/* \ && find /usr/local/lib/python3.7 -name "*.pyc" -type f -delete +USER nonroot EXPOSE 8501 CMD pipenv run streamlit run explorer/all.py