update Dockerfile
Former-commit-id: 3f8dcfdf865ca0857bf2d5261b858cc3daa22f3f
This commit is contained in:
parent
39a7500321
commit
7e09d16542
@ -15,7 +15,6 @@ RUN set -eux; \
|
|||||||
gnupg \
|
gnupg \
|
||||||
wget \
|
wget \
|
||||||
; \
|
; \
|
||||||
# rm -rf /var/lib/apt/lists/*; \
|
|
||||||
\
|
\
|
||||||
dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')"; \
|
dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')"; \
|
||||||
wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch"; \
|
wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch"; \
|
||||||
@ -39,13 +38,14 @@ RUN set -eux; \
|
|||||||
gosu nobody true
|
gosu nobody true
|
||||||
|
|
||||||
# Load pre-generated equivalent binaries to image (reduces deployment build times)
|
# Load pre-generated equivalent binaries to image (reduces deployment build times)
|
||||||
ADD ./app/* /usr/local/bin/
|
RUN \
|
||||||
|
mkdir -p /etc/keydb
|
||||||
|
ADD ./app/keydb-* /usr/local/bin/
|
||||||
|
ADD ./app/docker-entrypoint.sh /usr/local/bin/
|
||||||
|
ADD ./app/*.conf /etc/keydb/
|
||||||
# Set up config and binaries
|
# Set up config and binaries
|
||||||
RUN \
|
RUN \
|
||||||
cd /usr/local/bin && \
|
cd /usr/local/bin && \
|
||||||
mkdir -p /etc/keydb && \
|
|
||||||
mv -f *.conf /etc/keydb && \
|
|
||||||
sed -i 's/^\(bind .*\)$/# \1/' /etc/keydb/keydb.conf && \
|
sed -i 's/^\(bind .*\)$/# \1/' /etc/keydb/keydb.conf && \
|
||||||
sed -i 's/^\(daemonize .*\)$/# \1/' /etc/keydb/keydb.conf && \
|
sed -i 's/^\(daemonize .*\)$/# \1/' /etc/keydb/keydb.conf && \
|
||||||
sed -i 's/^\(dir .*\)$/# \1\ndir \/data/' /etc/keydb/keydb.conf && \
|
sed -i 's/^\(dir .*\)$/# \1\ndir \/data/' /etc/keydb/keydb.conf && \
|
||||||
@ -55,8 +55,7 @@ RUN \
|
|||||||
cd /etc/keydb && \
|
cd /etc/keydb && \
|
||||||
ln -s keydb.conf redis.conf
|
ln -s keydb.conf redis.conf
|
||||||
|
|
||||||
# Ensure deps installed for binaries (including Pro)
|
# Ensure deps installed for binaries
|
||||||
# libc6 (>= 2.17), libcurl4 (>= 7.16.2), libgcc1 (>= 1:3.0), libstdc++6 (>= 4.8.1), libuuid1 (>= 2.16), libssl1.1 (>= 1.1.1)
|
|
||||||
RUN set -eux; \
|
RUN set -eux; \
|
||||||
\
|
\
|
||||||
savedAptMark="$(apt-mark showmanual)"; \
|
savedAptMark="$(apt-mark showmanual)"; \
|
||||||
@ -68,20 +67,12 @@ RUN set -eux; \
|
|||||||
libstdc++6 \
|
libstdc++6 \
|
||||||
libgcc1 \
|
libgcc1 \
|
||||||
zlib1g \
|
zlib1g \
|
||||||
|
libbz2-1.0 \
|
||||||
|
liblz4-1 \
|
||||||
|
libsnappy1v5 \
|
||||||
|
libzstd1 \
|
||||||
; \
|
; \
|
||||||
rm -rf /var/lib/apt/lists/*; \
|
rm -rf /var/lib/apt/lists/*
|
||||||
\
|
|
||||||
apt-mark auto '.*' > /dev/null; \
|
|
||||||
[ -z "$savedAptMark" ] || apt-mark manual $savedAptMark > /dev/null; \
|
|
||||||
find /usr/local -type f -executable -exec ldd '{}' ';' \
|
|
||||||
| awk '/=>/ { print $(NF-1) }' \
|
|
||||||
| sort -u \
|
|
||||||
| xargs -r dpkg-query --search \
|
|
||||||
| cut -d: -f1 \
|
|
||||||
| sort -u \
|
|
||||||
| xargs -r apt-mark manual \
|
|
||||||
; \
|
|
||||||
apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false
|
|
||||||
|
|
||||||
# create working directories
|
# create working directories
|
||||||
RUN \
|
RUN \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user