-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
34 lines (34 loc) · 1.07 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
FROM ubuntu:18.04
# compiling CRIU requires a surprising amount of stuff
RUN apt-get -q update
RUN apt-get -qy install bsdmainutils
RUN apt-get -qy install build-essential
RUN apt-get -qy install curl
RUN apt-get -qy install libbsd-dev
RUN apt-get -qy install libcap-dev
RUN apt-get -qy install libnet-dev
RUN apt-get -qy install libnl-3-dev
RUN apt-get -qy install libprotobuf-c-dev
RUN apt-get -qy install libprotobuf-dev
RUN apt-get -qy install linux-headers-generic
RUN DEBIAN_FRONTEND=nontineractive apt-get -qy install pkg-config
RUN apt-get -qy install protobuf-c-compiler
RUN apt-get -qy install protobuf-compiler
RUN apt-get -qy install python3
RUN apt-get -qy install tmux
RUN mkdir /src
WORKDIR /src
ENV CRIU 3.15
RUN curl http://download.openvz.org/criu/criu-$CRIU.tar.bz2 | tar -jxf-
RUN make -C criu-$CRIU
RUN cp criu-$CRIU/criu/criu /usr/local/sbin
# now get rogue
RUN apt-get -qy install bsdgames-nonfree
# add scripts
RUN mkdir /saves
ADD save /usr/local/sbin/
ADD load /usr/local/sbin/
ADD motd /
ENV PATH="/usr/games:${PATH}"
RUN echo "cat /motd" >> ~/.bashrc
CMD ["bash"]