forked from cloudfreexiao/pluto
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
31 lines (24 loc) · 750 Bytes
/
Copy pathDockerfile
File metadata and controls
31 lines (24 loc) · 750 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
30
31
FROM ubuntu:24.04
LABEL maintainer="https://github.com/cloudfreexiao"
RUN apt update
RUN apt install -y make build-essential cmake gcc g++ git sudo
RUN apt install -y zlib1g-dev libbz2-dev libreadline-dev llvm libfaketime libcapstone-dev libelf-dev
RUN apt install -y rlwrap curl wget valgrind zip unzip
RUN apt upgrade -y
RUN apt autoremove
RUN apt-get clean
ENV RuntimeDir=/opt/workspace
ENV BuildDir=/tmp/pluto
RUN mkdir -p ${BuildDir}
RUN mkdir -p ${RuntimeDir}
COPY . ${BuildDir}
WORKDIR ${BuildDir}
RUN sh build.sh
RUN cp -rf build/pluto ${RuntimeDir}
RUN rm -rf ${BuildDir}
WORKDIR ${RuntimeDir}/pluto
CMD ["sh", "-c", "skynet example/config"]
#打包镜像
# docker build . -t pluto
# docker-compose up -dV
# docker exec -it pluto bash