FIX: removed static 'passwd' & 'group' files.
This commit is contained in:
parent
07444ace8c
commit
b3734e9ff9
3 changed files with 3 additions and 4 deletions
|
@ -5,8 +5,9 @@ COPY . .
|
||||||
RUN mkdir ./bin && \
|
RUN mkdir ./bin && \
|
||||||
CGO_ENABLED=0 GOARCH=amd64 GOOS=linux go build -tags netgo -installsuffix netgo -o ./bin/goStatic && \
|
CGO_ENABLED=0 GOARCH=amd64 GOOS=linux go build -tags netgo -installsuffix netgo -o ./bin/goStatic && \
|
||||||
mkdir ./bin/etc && \
|
mkdir ./bin/etc && \
|
||||||
cp ./passwd ./bin/etc && \
|
UI=$(( ( RANDOM % 9999 ) + 99 )) && \
|
||||||
cp ./group ./bin/etc
|
echo "appuser:x:$ID:$ID::/sbin/nologin:/bin/false" > ./bin/etc/passwd && \
|
||||||
|
echo "appgroup:x:$ID:appuser" > ./bin/etc/group
|
||||||
|
|
||||||
# stage 1
|
# stage 1
|
||||||
FROM scratch
|
FROM scratch
|
||||||
|
|
1
group
1
group
|
@ -1 +0,0 @@
|
||||||
appgroup:x:1231:appuser
|
|
1
passwd
1
passwd
|
@ -1 +0,0 @@
|
||||||
appuser:x:1234:1231::/home/appuser:/bin/false
|
|
Loading…
Reference in a new issue