Skip to content

Commit 67f02d2

Browse files
committed
feat(redis): add Rust to image
1 parent c3bb52d commit 67f02d2

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

apps/redis/Dockerfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,15 @@ LABEL org.opencontainers.image.licenses=MIT
77

88
ENV DEBIAN_FRONTEND="noninteractive"
99

10-
# Install dependencies as per official Redis build instructions
10+
ARG PATH="/usr/local/cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"
11+
ENV AMP_ADDITIONAL_ENV_VARS="PATH"
12+
13+
# Install dependencies as per official Redis build instructions, and Rust for building modules
1114
RUN set -eux; \
1215
apt-get update; \
1316
apt-get install -o APT::Keep-Downloaded-Packages="false" -y --no-install-recommends \
1417
ca-certificates wget dpkg-dev gcc g++ libc6-dev libssl-dev make git cmake python3 \
1518
python3-pip python3-venv python3-dev unzip rsync clang automake autoconf libtool pkg-config; \
19+
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh; \
1620
apt-get clean; \
1721
rm -rf /var/lib/apt/lists/*

0 commit comments

Comments
 (0)