-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
30 lines (22 loc) · 915 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
FROM ubuntu:18.04
RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections &&\
apt-get install -y -q
RUN mkdir /etc/dma/
RUN echo 'user@example.org|smtp.example.org:password' | tee -a /etc/dma/auth.conf &&\
echo 'MAILNAME /etc/mailname' | tee -a /etc/dma/dma.conf &&\
echo 'example@example.org' | tee -a /etc/mailname
RUN apt-get update -y && \
apt-get upgrade -y && \
apt-get install git sudo gnupg -y
RUN apt-get install -y dma --option=Dpkg::Options::=--force-confdef
RUN useradd --create-home --shell /bin/bash ubuntu && \
echo 'ubuntu:ubuntu' | chpasswd
RUN usermod -aG sudo ubuntu
ADD TFG/ /home/ubuntu/
RUN sudo sh /home/ubuntu/install.sh
RUN pip3 install -r /home/ubuntu/requirements.txt
RUN sudo chmod +x /home/ubuntu/brassfork && \
chown -R ubuntu:ubuntu /home/ubuntu/
RUN sudo mv /JA3db.json /home/ubuntu/
EXPOSE 5000
ENTRYPOINT ["/bin/bash"]