File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,6 +11,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1111* Introduce UPDATE_DOCKER_IMAGE environment variable.
1212 * Setting this environment variable to "no" will skip updating the Docker image during ` make up ` .
1313
14+ ### Changed
15+
16+ * Refactored Dockerfile for mt-watcher.
17+ * Ensure that binaries with the appropriate architecture are installed even if BuildKit is disabled.
18+ * Reduced image size by using "perl:* -slim" images.
19+
1420## [ 2.2.0] - 2023-02-15
1521
1622### Added
Original file line number Diff line number Diff line change 1- FROM perl:5.36
1+ FROM perl:5.36-slim
22
3- ARG TARGETARCH
43ARG DOCKER_VERSION=20.10.9
54
6- # # docker
75RUN set -ex \
86 \
7+ && apt-get update \
8+ && apt-get install -y curl gcc \
9+ && apt-get autoremove -y && apt-get clean -y && rm -rf /var/lib/apt/lists/* \
10+ # # docker
911 && mkdir /tmp/docker \
1012 && cd /tmp/docker \
11- && case "${TARGETARCH}" in arm64) platform=aarch64;; *) platform=x86_64;; esac \
12- && curl -sL https://download.docker.com/linux/static/stable/${platform}/docker-${DOCKER_VERSION}.tgz -o docker.tgz \
13+ && curl -sL https://download.docker.com/linux/static/stable/`arch`/docker-${DOCKER_VERSION}.tgz -o docker.tgz \
1314 && tar zxf docker.tgz \
1415 && mv docker/docker /usr/bin/docker \
15- && rm -fr /tmp/docker
16-
17- # # cpan libraries
18- RUN set -ex \
19- \
20- && cpanm Filesys::Notify::Simple Linux::Inotify2
16+ && rm -fr /tmp/docker \
17+ && cd \
18+ # # cpan libraries
19+ && cpanm Filesys::Notify::Simple Linux::Inotify2 \
20+ && apt-get purge -y curl gcc
You can’t perform that action at this time.
0 commit comments