File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -3,15 +3,21 @@ ENV PYTHONPATH /app
33ENV PYTHONUNBUFFERED 1
44ENV PYTHONDONTWRITEBYTECODE 1
55
6+ RUN groupadd --gid 5000 main \
7+ && useradd --home-dir /home/main --create-home --uid 5000 \
8+ --gid 5000 --shell /bin/sh --skel /dev/null main
9+
610COPY . /app
711WORKDIR /app
812
913# install curl; skipcq: DOK-DL3008
10- RUN apt-get update && apt-get install -y curl git && apt-get clean && rm -rf /var/lib/apt/lists/*
14+ RUN apt-get update && apt-get install --no-install-recommends - y curl git && apt-get clean && rm -rf /var/lib/apt/lists/*
1115SHELL ["/bin/bash" , "-o" , "pipefail" , "-c" ]
1216
1317# download the DeepSource CLI binary
1418RUN curl https://deepsource.io/cli | bash
1519RUN ["chmod" , "777" , "/app/main.py" ]
1620
21+ USER main
22+
1723CMD ["/app/main.py" ]
You can’t perform that action at this time.
0 commit comments