Skip to content

Commit

Permalink
fix: create docker image with proper git config (#1421)
Browse files Browse the repository at this point in the history
  • Loading branch information
cfabianski authored Dec 4, 2023
1 parent 125d7de commit 12a566e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,12 @@ FROM ubuntu:23.04

RUN apt-get update && \
apt-get install -y git && \
\
git config --global --add safe.directory '*' && \
\
adduser --system --group runuser
useradd --system --user-group --create-home runuser

COPY bearer /usr/local/bin/

USER runuser

RUN git config --global --add safe.directory '*'

ENTRYPOINT ["bearer"]

0 comments on commit 12a566e

Please sign in to comment.