Skip to content

Commit

Permalink
let's try again
Browse files Browse the repository at this point in the history
  • Loading branch information
linozen committed Jul 18, 2021
1 parent f41b474 commit 13a6af1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 13a6af1

Please sign in to comment.