clean cache, reduce image size (#430)

* clean cache, reduce image size

* remove set -ex, image size indeed reduced
This commit is contained in:
Rick 2020-12-02 04:16:24 +08:00 committed by GitHub
parent d063bc0e78
commit 7068faaa92
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -11,5 +11,8 @@ RUN \
sed -i "s/127.0.0.1:6379/redis:6379/g" `grep -rl "127.0.0.1:6379" ./etc/` &&\
sed -i 's/127.0.0.1/mysql/g' etc/mysql.yml
COPY entrpoint.sh .
RUN yum install mysql net-tools -y
RUN set -ex \
&& yum install mysql net-tools -y \
&& yum clean all \
&& rm -rf /var/cache/yum
ENTRYPOINT ./entrpoint.sh