-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
62 lines (46 loc) · 1 KB
/
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
FROM ubuntu:jammy AS builder
RUN mkdir /os-tmp /os-env
COPY ./os-tmp/* /os-tmp
COPY ./os-env/* /os-env
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && \
apt-get install -y \
build-essential \
bison\
flex\
libgmp3-dev\
libmpc-dev\
libmpfr-dev\
libcapstone-dev\
libvte-dev\
texinfo\
libgtk-3-dev\
ninja-build\
wget
WORKDIR /os-tmp
ENV PREFIX /os-env
RUN chmod +x *.sh
RUN ./build-env.sh
FROM ubuntu:jammy
RUN mkdir /os-dev /os-env
COPY --from=builder /os-env/ /os-env/
COPY ./os-dev/* /os-dev
ARG frwd_method
ENV FRWD_METHOD="${frwd_method}"
ENV DEBIAN_FRONTEND=noninteractive
ENV PATH="/os-env/bin:${PATH}"
RUN apt-get update && \
apt-get install -y \
build-essential \
libgtk-3-0\
libcapstone4\
libvte9\
git\
xorriso\
grub2-common\
xfce4-terminal
RUN chmod +x /os-env/setup.sh
RUN chmod +x /os-env/entry.sh
RUN /os-env/setup.sh
WORKDIR /os-dev
ENTRYPOINT [ "/os-env/entry.sh" ]