-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
39 lines (28 loc) · 806 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
29
30
31
32
33
34
35
36
37
38
39
# Ubuntu Fork-Bomb Dockerfile
# Installs all dependencies required on a Linux ARM 64 Ubuntu system to be able to run a fork bomb
# Pulls base image
FROM ubuntu:18.04
# Install
RUN \
apt-get -y update && \
apt-get -y upgrade && \
apt-get -y install vim && \
apt-get -y install build-essential
# Add files.
#ADD root/.bashrc /root/.bashrc
#ADD root/.scripts /root/.scripts
# Set environment variables.
ENV HOME /root
# Define working directory.
WORKDIR /root
COPY . /root
EXPOSE 80
# Use Clang to compile the Test.cpp source file
RUN gcc forkBomb.c -o forkBomb
# Run the output program from the previous step
CMD ["./forkBomb"]
#COPY docker-start.sh /usr/local/bin/
#RUN ln -s /usr/local/bin/docker-start.sh
#ENTRYPOINT ["docker-start.sh"]
# Define default command.
#CMD ["bash"]