Skip to content

Commit 5ac0dd6

Browse files
committed
⚡️ remove huff and stylus to minimize dockerfile
1 parent 8bcdba2 commit 5ac0dd6

File tree

1 file changed

+3
-28
lines changed

1 file changed

+3
-28
lines changed

paradigmctf.py/Dockerfile

Lines changed: 3 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
FROM python:3.11.6-slim
22

33
# Set up unprivileged user and install dependencies
4-
# TODO: we need bsdmainutils so we have hexdump so foundry-huff can...
5-
# generate some random bytes... :/
64
RUN true && \
75
useradd -u 1000 -m user && \
86
apt-get update && \
9-
apt-get install -y curl git socat bsdmainutils build-essential && \
7+
apt-get install -y curl git socat build-essential && \
108
rm -rf /var/cache/apt/lists /var/lib/apt/lists/* && \
119
true
1210

@@ -20,29 +18,6 @@ RUN true && \
2018
foundryup && \
2119
true
2220

23-
# Install Huff
24-
ENV HUFF_DIR=/opt/huff
25-
26-
ENV PATH=${HUFF_DIR}/bin/:${PATH}
27-
28-
RUN true && \
29-
curl -L http://get.huff.sh | bash && \
30-
huffup && \
31-
true
32-
33-
# Install Stylus
34-
env RUSTUP_HOME=/opt/rust/rustup CARGO_HOME=/opt/rust/cargo
35-
env PATH=${PATH}:/opt/rust/cargo/bin
36-
37-
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > /rustup.sh && \
38-
sh /rustup.sh -y --default-toolchain nightly --profile=minimal && \
39-
rm /rustup.sh
40-
RUN rustup component add rust-src --toolchain nightly
41-
RUN rustup target add wasm32-unknown-unknown
42-
RUN RUSTFLAGS="-C link-args=-rdynamic" cargo install --force cargo-stylus
43-
44-
RUN chmod -R 777 /opt/rust/cargo/registry
45-
4621
# (Optimization) Install requirements
4722
COPY requirements.txt /tmp/requirements.txt
4823

@@ -56,6 +31,6 @@ RUN true && \
5631
rm -rf /tmp/requirements.txt /tmp/paradigmctf.py && \
5732
true
5833

59-
USER 1000
34+
# USER 1000
6035

61-
WORKDIR /home/user
36+
# WORKDIR /home/user

0 commit comments

Comments
 (0)