Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
PengBin9 authored Oct 24, 2024
1 parent 408cfec commit c904c2b
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions app/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ RUN ln -s /usr/local/bin/python3 /usr/local/bin/python
RUN curl -s https://bootstrap.pypa.io/get-pip.py -o /get-pip.py && \
python get-pip.py
RUN pip install --upgrade --disable-pip-version-check --no-cache-dir --break-system-packages setuptools
#RUN useradd -u 1000 -m deepflow -s /bin/bash
RUN --mount=target=/tmp-mount \
cp -a /tmp-mount/output_${TARGETARCH}/* /usr/local && \
mkdir -p /etc/deepflow/ && \
Expand All @@ -21,9 +22,7 @@ RUN --mount=target=/tmp-mount \
chmod -R 755 /app && \
chmod -R 755 /etc/deepflow/ && \
chown -R deepflow:deepflow /usr/local/lib/python3.8/
RUN useradd -u 1000 -m deepflow -s /bin/bash
RUN echo 'root:deepflow' | chpasswd

USER deepflow
#RUN echo 'root:deepflow' | chpasswd
#USER deepflow

CMD python3 -u /app/app.py

0 comments on commit c904c2b

Please sign in to comment.