Skip to content

Commit

Permalink
Try to set /app as safe system wide
Browse files Browse the repository at this point in the history
  • Loading branch information
simar0at committed Oct 29, 2024
1 parent d0f5f42 commit b7e3dd0
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,11 @@ COPY . /app
RUN groupadd --gid $USER_GID $USERNAME \
&& useradd --uid $USER_UID --gid $USER_GID -m $USERNAME \
&& apt update && apt -y full-upgrade && apt install -y git && pip3 install poetry && apt clean \
&& poetry config virtualenvs.create false && poetry install --no-dev && poetry cache clear --all .
&& poetry config virtualenvs.create false && poetry install --no-dev && poetry cache clear --all . \
&& git config --system --add safe.directory /app

USER app

RUN git config --global --add safe.directory /app

CMD ["fastapi", "run", "releven.py", "--port", "5000", "--proxy-headers"]

EXPOSE 5000

0 comments on commit b7e3dd0

Please sign in to comment.