Skip to content

Commit

Permalink
Give correct permissions to the package cache
Browse files Browse the repository at this point in the history
  • Loading branch information
ImLighty committed Nov 16, 2023
1 parent eb094fe commit 405f186
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 3 additions & 0 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ RUN useradd -m -d /home/container -s /bin/bash container

RUN ln -s /home/container/ /nonexistent

RUN mkdir -p /go/pkg \
&& chown -R container:container /go/pkg

ENV USER=container HOME=/home/container

RUN apt update \
Expand Down
2 changes: 0 additions & 2 deletions startup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

echo "machine ${GIT_SERVER} login ${GIT_USERNAME} password ${GIT_PASSWORD}" >> ~/.netrc

GOMODCACHE=~/.cache/go-pkg

if [ ! -d "src" ]; then
git clone ${GIT_REPO} src
cd src
Expand Down

0 comments on commit 405f186

Please sign in to comment.