mirror of
https://github.com/octoleo/syncthing.git
synced 2025-04-05 09:11:52 +00:00
dockerfile: Install su-exec without updating. (#5051)
* Using --no-cache instead prevents unnecessarily adding about 1.3MB of Alpine package data * This reduces the uncompressed image size with about 6%.
This commit is contained in:
parent
409cb2beb8
commit
e10d7260c2
@ -18,8 +18,7 @@ RUN apk add --no-cache ca-certificates
|
|||||||
|
|
||||||
COPY --from=builder /go/src/github.com/syncthing/syncthing/syncthing /bin/syncthing
|
COPY --from=builder /go/src/github.com/syncthing/syncthing/syncthing /bin/syncthing
|
||||||
|
|
||||||
RUN apk update \
|
RUN apk add --no-cache su-exec
|
||||||
&& apk add su-exec
|
|
||||||
|
|
||||||
ENV STNOUPGRADE=1
|
ENV STNOUPGRADE=1
|
||||||
ENV PUID=1000
|
ENV PUID=1000
|
||||||
|
Loading…
x
Reference in New Issue
Block a user