Fixing wrong uid for user.
This commit is contained in:
parent
da6bf73338
commit
82dbfd5743
@ -1,10 +1,11 @@
|
||||
ARG uid=1000
|
||||
FROM alpine:edge
|
||||
|
||||
RUN apk update
|
||||
RUN apk add inkscape
|
||||
RUN apk add git
|
||||
RUN apk add shadow
|
||||
RUN useradd -m aleta -d /var/lib/aleta
|
||||
RUN useradd -m aleta -d /var/lib/aleta -u $uid
|
||||
RUN apk add bash
|
||||
RUN apk add parallel
|
||||
COPY generate_release.sh /var/lib/aleta/
|
||||
|
2
build.sh
2
build.sh
@ -14,7 +14,7 @@ build() {
|
||||
rm -rf output
|
||||
fi
|
||||
mkdir output
|
||||
docker build --no-cache -t aletareleaser:latest .
|
||||
docker build --no-cache -t aletareleaser:latest . --build-arg uid=$(getent passwd $(whoami) | awk -F: '{ print $3 }')
|
||||
docker run -v $(realpath output):/var/lib/aleta/output --rm aletareleaser
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user