forked from rapid7/warvox
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
60 lines (49 loc) · 1.14 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
FROM ubuntu:18.04
MAINTAINER Pentestify <[email protected]>
ENV DEBIAN_FRONTEND noninteractive
USER root
# Migrate!
WORKDIR /opt/warvox
# Set up intrigue
ENV BUNDLE_JOBS=12
ENV PATH /root/.rbenv/bin:$PATH
ENV IDIR=/core
ENV DEBIAN_FRONTEND=noninteractive
# base deps
# Clean up
RUN apt-get autoremove
RUN apt-get --purge remove
RUN apt-get autoclean
RUN apt-get clean
RUN apt-get update --fix-missing
# Place base deps here so we don't have to reinstall every time
RUN apt-get -y --fix-broken --no-install-recommends install make \
sudo \
gnuplot \
lame \
build-essential \
libssl-dev \
libcurl4-openssl-dev \
libssl-dev \
libreadline-dev \
zlib1g-dev \
postgresql \
postgresql-contrib \
postgresql-common \
git-core \
curl \
libpq-dev \
sox \
ca-certificates \
&& rm -rf /var/lib/apt/lists/*s
# create a volume
VOLUME /opt/warvox
# copy warvox code
COPY . /opt/warvox/
# install warvox-specific software & config
RUN /bin/bash /opt/warvox/setup.sh
RUN /opt/warvox/bin/adduser admin randompass
# Expose the port
EXPOSE 7777
RUN chmod +x /opt/warvoxbin/warvox
ENTRYPOINT ["/opt/warvoxbin/warvox --address 0.0.0.0"]