Skip to content

Commit

Permalink
Create home dir for user app in Python container
Browse files Browse the repository at this point in the history
  • Loading branch information
Vincent Wilms committed Jan 23, 2025
1 parent 8241bbf commit 6d40569
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## v2.0.0-beta.46 - 2025-01-23

- Create home dir for user app in Python container

## v2.0.0-beta.45 - 2025-01-23

- Add git executable to python container
Expand Down
7 changes: 7 additions & 0 deletions src/agent/dotnet/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,11 @@ WORKDIR /app
COPY app .

USER app

# Create ~/.local/share so that it is definitely owned by
# the app user and Nuget packages can be restore to the
# ~.local/share/Nuget folder. Also there might be the need
# for extensions to write to this folder.
RUN mkdir -p /home/app/.local/share

ENTRYPOINT ["./Nexus.Agent"]
2 changes: 1 addition & 1 deletion src/agent/python/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ WORKDIR "/app"

RUN apt update &&\
apt install git -y &&\
useradd -u 1654 app &&\
useradd -m -u 1654 app &&\
pip install -r requirements.txt

USER app
Expand Down
2 changes: 1 addition & 1 deletion version.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"version": "2.0.0",
"suffix": "beta.45"
"suffix": "beta.46"
}

0 comments on commit 6d40569

Please sign in to comment.