FIX: removed static 'passwd' & 'group' files.

This commit is contained in:
mason 2019-11-11 16:09:46 -08:00
parent 07444ace8c
commit b3734e9ff9
3 changed files with 3 additions and 4 deletions

View file

@ -5,8 +5,9 @@ COPY . .
RUN mkdir ./bin && \
CGO_ENABLED=0 GOARCH=amd64 GOOS=linux go build -tags netgo -installsuffix netgo -o ./bin/goStatic && \
mkdir ./bin/etc && \
cp ./passwd ./bin/etc && \
cp ./group ./bin/etc
UI=$(( ( RANDOM % 9999 ) + 99 )) && \
echo "appuser:x:$ID:$ID::/sbin/nologin:/bin/false" > ./bin/etc/passwd && \
echo "appgroup:x:$ID:appuser" > ./bin/etc/group
# stage 1
FROM scratch

1
group
View file

@ -1 +0,0 @@
appgroup:x:1231:appuser

1
passwd
View file

@ -1 +0,0 @@
appuser:x:1234:1231::/home/appuser:/bin/false