getting there
This commit is contained in:
@@ -14,13 +14,13 @@ RUN apt-get update -yqq \
|
||||
&& apt-get clean \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
ARG UID
|
||||
ARG GID
|
||||
ARG UUID
|
||||
ARG UGID
|
||||
ARG TZ
|
||||
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
|
||||
RUN groupadd -g $GID user && \
|
||||
useradd -u $UID -g $GID -ms /bin/bash user && \
|
||||
mkdir -p /opt/venv && chown $UID:$GID /opt/venv
|
||||
RUN groupadd -g $UGID user && \
|
||||
useradd -u $UUID -g $UGID -ms /bin/bash user && \
|
||||
mkdir -p /opt/venv && chown $UUID:$UGID /opt/venv
|
||||
COPY ./requirements.txt /requirements.txt
|
||||
COPY docker-builder.sh /
|
||||
USER user
|
||||
@@ -28,7 +28,7 @@ USER user
|
||||
RUN bash /docker-builder.sh
|
||||
COPY ./ /app
|
||||
USER root
|
||||
RUN chown -R $UID:$GID /app
|
||||
RUN chown -R $UUID:$UGID /app
|
||||
USER user
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
Reference in New Issue
Block a user