-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
29 lines (20 loc) · 872 Bytes
/
Dockerfile
File metadata and controls
29 lines (20 loc) · 872 Bytes
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
29
FROM python:3.13-alpine
RUN apk update && apk add rustup clang make pkgconf linux-headers
RUN rustup-init -y
ENV PATH="/root/.cargo/bin:$PATH"
RUN rustup target add x86_64-unknown-linux-musl
RUN mkdir -p /server/static/files
WORKDIR /server
COPY ./docker-scripts /docker-scripts
# Build libmnl and libnftnl manually, because cargo does not like the ones provided by Alpine.
RUN /docker-scripts/build-libmnl.sh
RUN /docker-scripts/build-libnftnl.sh
# Install server dependencies first, so that we don't have to rebuild the entire
# layer every time we change something in the server.
COPY ./server/requirements.txt /server/requirements.txt
RUN cd /server && pip3 install --no-cache-dir -r requirements.txt
# Copy the rest of the server
COPY ./server /server
COPY ./client/start_sploit.py /server/static/files/
COPY ./hfi /hfi-src
ENTRYPOINT ["python3", "main.py"]