-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
49 lines (42 loc) · 1.9 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
# ------------------------------------------------------------------------------
# Install build tools and compile webstore/CHAOSgen components
FROM ubuntu:focal AS build
ADD . /sepulcher
RUN apt-get update && \
apt-get install -y build-essential git ca-certificates \
libcurl4-gnutls-dev libgcrypt20-dev && \
git clone https://github.com/Fullaxx/CHAOSgen.git CHAOSgen && \
git clone https://github.com/Fullaxx/webstore.git webstore && \
cd /CHAOSgen/src && ./compile.sh && \
cd /webstore/src && ./compile_clients.sh && \
cd /sepulcher/src && ./compile.sh
# ------------------------------------------------------------------------------
# Pull base image
FROM ubuntu:focal
MAINTAINER Brett Kuskie <[email protected]>
# ------------------------------------------------------------------------------
# Set environment variables
ENV DEBIAN_FRONTEND noninteractive
# ------------------------------------------------------------------------------
# Install openssl,libraries and clean up
RUN apt-get update && \
apt-get install -y --no-install-recommends file nano openssl \
libcurl3-gnutls libgcrypt20 ca-certificates && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /var/tmp/* /tmp/*
# ------------------------------------------------------------------------------
# Update .bashrc
RUN echo >>/root/.bashrc && \
echo "cd /data" >>/root/.bashrc
# ------------------------------------------------------------------------------
# Install CHAOSgen keygen, webstore client binaries, and sepulcher
COPY --from=build /CHAOSgen/src/keygen.exe /usr/bin/chaos_keygen.exe
COPY --from=build /webstore/src/ws_*.exe /usr/bin/
COPY --from=build /sepulcher/src/*.exe /usr/bin/
COPY scripts/*.sh /usr/bin/
# ------------------------------------------------------------------------------
# Add volumes
VOLUME /data
# ------------------------------------------------------------------------------
# Define default command
CMD ["/bin/bash"]