Skip to content

Commit 5ce5704

Browse files
committed
Add Dockerfile
1 parent 38ce880 commit 5ce5704

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

Dockerfile

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
FROM ubuntu:22.04
2+
3+
LABEL org.opencontainers.image.source=https://github.com/jonlamb-gh/ctf-util
4+
LABEL org.opencontainers.image.description="Docker image for ctf-util"
5+
LABEL org.opencontainers.image.licenses=MIT
6+
7+
ENV DEBIAN_FRONTEND=noninteractive
8+
9+
RUN apt-get update && apt-get upgrade -y && apt-get install --no-install-recommends --assume-yes \
10+
patchelf lintian adduser help2man gzip \
11+
cmake make gcc g++ libusb-1.0-0-dev stunnel \
12+
curl build-essential protobuf-compiler libssl-dev \
13+
python3 python3-pip python3-venv \
14+
libglib2.0-dev pkg-config libtool flex bison autoconf ca-certificates automake
15+
16+
RUN curl https://sh.rustup.rs -sSf | bash -s -- -y --profile minimal -c rustfmt -c clippy
17+
ENV PATH="/root/.cargo/bin:${PATH}"
18+
19+
RUN mkdir -p /ctf-util
20+
COPY Cargo.lock /ctf-util/
21+
COPY Cargo.toml /ctf-util/
22+
COPY LICENSE-MIT /ctf-util/
23+
COPY README.md /ctf-util/
24+
COPY src/ /ctf-util/src/
25+
26+
RUN cd /ctf-util && ls -l && cargo install --path .
27+
28+
ENTRYPOINT ["/root/.cargo/bin/ctf-util"]

0 commit comments

Comments
 (0)