chown in the builder to reduce image size
This commit is contained in:
parent
d319928f44
commit
1509f5932d
|
@ -7,7 +7,8 @@ RUN set -eu &&\
|
|||
cd /tmp &&\
|
||||
curl -sSLO https://www.ubnt.com/downloads/unifi/${UNIFI_VERSION}/UniFi.unix.zip &&\
|
||||
unzip UniFi.unix.zip &&\
|
||||
rm -f UniFi/bin/mongod
|
||||
rm -f UniFi/bin/mongod &&\
|
||||
chown -R root:root UniFi
|
||||
|
||||
FROM [[ .docker.repo ]][[ .docker.base_images.java17.image ]]
|
||||
MAINTAINER [[ .docker.maintainer ]]
|
||||
|
@ -22,7 +23,6 @@ RUN set -eu &&\
|
|||
apk --no-cache upgrade &&\
|
||||
addgroup -g 8443 unifi &&\
|
||||
adduser --system --ingroup unifi --disabled-password --uid 8443 --home /opt/unifi --shell /sbin/nologin unifi &&\
|
||||
chown -R root:root /opt/unifi &&\
|
||||
mkdir -p /data/unifi &&\
|
||||
mkdir -p /data/logs &&\
|
||||
chown unifi:unifi /data &&\
|
||||
|
|
|
@ -17,7 +17,7 @@ unifi:
|
|||
driver: docker
|
||||
|
||||
# The image for the controller
|
||||
image: danielberteaud/unifi:7.5.174-6
|
||||
image: danielberteaud/unifi:7.5.174-7
|
||||
|
||||
# Resource allocation for the controller
|
||||
resources:
|
||||
|
|
Loading…
Reference in New Issue