Use tini in Alpine-based Docker image (#682)
This commit is contained in:
parent
806175df99
commit
a464a7173d
@ -5,7 +5,7 @@ RUN mkdir -p /etc/keydb
|
|||||||
ARG BRANCH
|
ARG BRANCH
|
||||||
RUN set -eux; \
|
RUN set -eux; \
|
||||||
\
|
\
|
||||||
apk add --no-cache su-exec; \
|
apk add --no-cache su-exec tini; \
|
||||||
apk add --no-cache --virtual .build-deps \
|
apk add --no-cache --virtual .build-deps \
|
||||||
coreutils \
|
coreutils \
|
||||||
gcc \
|
gcc \
|
||||||
@ -77,6 +77,6 @@ RUN set -eux; \
|
|||||||
chmod +x /usr/local/bin/docker-entrypoint.sh
|
chmod +x /usr/local/bin/docker-entrypoint.sh
|
||||||
VOLUME /data
|
VOLUME /data
|
||||||
WORKDIR /data
|
WORKDIR /data
|
||||||
ENTRYPOINT ["docker-entrypoint.sh"]
|
ENTRYPOINT ["tini", "--", "docker-entrypoint.sh"]
|
||||||
EXPOSE 6379
|
EXPOSE 6379
|
||||||
CMD ["keydb-server", "/etc/keydb/keydb.conf"]
|
CMD ["keydb-server", "/etc/keydb/keydb.conf"]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user