mirror of https://github.com/telemt/telemt.git
Update Dockerfile
This commit is contained in:
parent
bbc69f945e
commit
56fc6c4896
18
Dockerfile
18
Dockerfile
|
|
@ -28,9 +28,23 @@ RUN cargo build --release && strip target/release/telemt
|
||||||
FROM debian:12-slim AS minimal
|
FROM debian:12-slim AS minimal
|
||||||
|
|
||||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||||
upx \
|
|
||||||
binutils \
|
binutils \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
curl \
|
||||||
|
ca-certificates \
|
||||||
|
&& rm -rf /var/lib/apt/lists/* \
|
||||||
|
\
|
||||||
|
# install UPX from Telemt releases
|
||||||
|
&& curl -fL \
|
||||||
|
--retry 5 \
|
||||||
|
--retry-delay 3 \
|
||||||
|
--connect-timeout 10 \
|
||||||
|
--max-time 120 \
|
||||||
|
-o /tmp/upx.tar.xz \
|
||||||
|
https://github.com/telemt/telemt/releases/download/toolchains/upx-amd64_linux.tar.xz \
|
||||||
|
&& tar -xf /tmp/upx.tar.xz -C /tmp \
|
||||||
|
&& mv /tmp/upx*/upx /usr/local/bin/upx \
|
||||||
|
&& chmod +x /usr/local/bin/upx \
|
||||||
|
&& rm -rf /tmp/upx*
|
||||||
|
|
||||||
COPY --from=builder /build/target/release/telemt /telemt
|
COPY --from=builder /build/target/release/telemt /telemt
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue