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