Skip to content

Commit

Permalink
Remove curl and unzip after they are used
Browse files Browse the repository at this point in the history
  • Loading branch information
DanNixon committed Aug 12, 2023
1 parent c8da740 commit 9e6c325
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,21 @@ FROM ubuntu:22.04
RUN apt-get update && \
apt-get install --yes \
clang \
curl \
libxml2 \
python3.10 \
python3.10-venv \
unzip

RUN curl -L 'https://github.com/esp-rs/espup/releases/latest/download/espup-x86_64-unknown-linux-gnu' -o /usr/bin/espup && \
chmod a+x /usr/bin/espup
python3.10-venv

RUN curl -L 'https://github.com/esp-rs/embuild/releases/download/ldproxy-v0.3.2/ldproxy-x86_64-unknown-linux-gnu.zip' -o ldproxy.zip && \
RUN apt-get install --yes \
curl \
unzip && \
curl -L 'https://github.com/esp-rs/espup/releases/latest/download/espup-x86_64-unknown-linux-gnu' -o /usr/bin/espup && \
chmod a+x /usr/bin/espup && \
curl -L 'https://github.com/esp-rs/embuild/releases/download/ldproxy-v0.3.2/ldproxy-x86_64-unknown-linux-gnu.zip' -o ldproxy.zip && \
unzip ldproxy.zip ldproxy && \
rm ldproxy.zip && \
chmod a+x ldproxy && \
mv ldproxy /usr/bin/ldproxy
mv ldproxy /usr/bin/ldproxy && \
apt-get remove --yes \
curl \
unzip && \
apt-get autoremove --yes

0 comments on commit 9e6c325

Please sign in to comment.