From 13a6af1781e452aed4da534c9971199335204d99 Mon Sep 17 00:00:00 2001 From: linozen Date: Sun, 18 Jul 2021 17:14:53 +0200 Subject: [PATCH] let's try again --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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