Fixing wrong uid for user.

This commit is contained in:
sergiotarxz 2022-02-09 02:32:52 +01:00
parent da6bf73338
commit 82dbfd5743
2 changed files with 3 additions and 2 deletions

View File

@ -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/

View File

@ -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
}