File tree Expand file tree Collapse file tree 1 file changed +3
-28
lines changed Expand file tree Collapse file tree 1 file changed +3
-28
lines changed Original file line number Diff line number Diff line change 1
1
FROM python:3.11.6-slim
2
2
3
3
# 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... :/
6
4
RUN true && \
7
5
useradd -u 1000 -m user && \
8
6
apt-get update && \
9
- apt-get install -y curl git socat bsdmainutils build-essential && \
7
+ apt-get install -y curl git socat build-essential && \
10
8
rm -rf /var/cache/apt/lists /var/lib/apt/lists/* && \
11
9
true
12
10
@@ -20,29 +18,6 @@ RUN true && \
20
18
foundryup && \
21
19
true
22
20
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
-
46
21
# (Optimization) Install requirements
47
22
COPY requirements.txt /tmp/requirements.txt
48
23
@@ -56,6 +31,6 @@ RUN true && \
56
31
rm -rf /tmp/requirements.txt /tmp/paradigmctf.py && \
57
32
true
58
33
59
- USER 1000
34
+ # USER 1000
60
35
61
- WORKDIR /home/user
36
+ # WORKDIR /home/user
You can’t perform that action at this time.
0 commit comments