Dockerfile use 'tini' init
This commit is contained in:
parent
6b997056b4
commit
5823638903
@ -3,7 +3,7 @@ MAINTAINER David Personette <dperson@gmail.com>
|
||||
|
||||
# Install samba
|
||||
RUN apk --no-cache --no-progress upgrade && \
|
||||
apk --no-cache --no-progress add bash samba shadow && \
|
||||
apk --no-cache --no-progress add bash samba shadow tini && \
|
||||
adduser -D -G users -H -S -g 'Samba User' -h /tmp smbuser && \
|
||||
file="/etc/samba/smb.conf" && \
|
||||
sed -i 's|^;* *\(log file = \).*| \1/dev/stdout|' $file && \
|
||||
@ -47,4 +47,4 @@ HEALTHCHECK --interval=60s --timeout=15s \
|
||||
|
||||
VOLUME ["/etc/samba"]
|
||||
|
||||
ENTRYPOINT ["samba.sh"]
|
||||
ENTRYPOINT ["/sbin/tini", "--", "/usr/bin/samba.sh"]
|
@ -4,7 +4,7 @@ MAINTAINER David Personette <dperson@gmail.com>
|
||||
# Install samba
|
||||
RUN ["cross-build-start"]
|
||||
RUN apk --no-cache --no-progress upgrade && \
|
||||
apk --no-cache --no-progress add bash samba shadow && \
|
||||
apk --no-cache --no-progress add bash samba shadow tini && \
|
||||
adduser -D -G users -H -S -g 'Samba User' -h /tmp smbuser && \
|
||||
file="/etc/samba/smb.conf" && \
|
||||
sed -i 's|^;* *\(log file = \).*| \1/dev/stdout|' $file && \
|
||||
@ -49,4 +49,4 @@ HEALTHCHECK --interval=60s --timeout=15s \
|
||||
|
||||
VOLUME ["/etc/samba"]
|
||||
|
||||
ENTRYPOINT ["samba.sh"]
|
||||
ENTRYPOINT ["/sbin/tini", "--", "/usr/bin/samba.sh"]
|
@ -4,7 +4,7 @@ MAINTAINER David Personette <dperson@gmail.com>
|
||||
# Install samba
|
||||
RUN ["cross-build-start"]
|
||||
RUN apk --no-cache --no-progress upgrade && \
|
||||
apk --no-cache --no-progress add bash samba shadow && \
|
||||
apk --no-cache --no-progress add bash samba shadow tini && \
|
||||
adduser -D -G users -H -S -g 'Samba User' -h /tmp smbuser && \
|
||||
file="/etc/samba/smb.conf" && \
|
||||
sed -i 's|^;* *\(log file = \).*| \1/dev/stdout|' $file && \
|
||||
@ -49,4 +49,4 @@ HEALTHCHECK --interval=60s --timeout=15s \
|
||||
|
||||
VOLUME ["/etc/samba"]
|
||||
|
||||
ENTRYPOINT ["samba.sh"]
|
||||
ENTRYPOINT ["/sbin/tini", "--", "/usr/bin/samba.sh"]
|
Loading…
Reference in New Issue
Block a user