Merge pull request #29 from rockerbacon/fix-docker-user

Allow running docker container with any user
This commit is contained in:
Simon 2024-04-20 00:53:12 +07:00 committed by GitHub
commit 3e0e13e18e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -7,12 +7,12 @@ ENV PATH=/root/.local/bin:$PATH
RUN if [ "$INSTALL_DEBUG" ] ; then \ RUN if [ "$INSTALL_DEBUG" ] ; then \
apt-get -y update && apt-get -y install --no-install-recommends \ apt-get -y update && apt-get -y install --no-install-recommends \
vim htop bmon net-tools iputils-ping procps curl \ vim htop bmon net-tools iputils-ping procps curl \
&& pip install --user ipython \ && pip install ipython \
; fi ; fi
# install requirements # install requirements
COPY ./requirements.txt /requirements.txt COPY ./requirements.txt /requirements.txt
RUN pip install --user -r requirements.txt RUN pip install -r requirements.txt
COPY app /app COPY app /app
WORKDIR app WORKDIR app