forked from mitre-attack/attack-website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
34 lines (28 loc) · 1.2 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:22.04
COPY . /home/attackuser/attack-website
# label metadata
LABEL name="attack-website"
LABEL description="Dockerfile for the ATT&CK Website"
LABEL usage="https://github.com/mitre-attack/attack-website/blob/master/README.md#install-and-build"
LABEL url="https://attack.mitre.org/"
LABEL vcs-url="https://github.com/mitre-attack/attack-website"
LABEL vendor="MITRE ATT&CK"
LABEL maintainer="[email protected]"
ENV DEBIAN_FRONTEND noninteractive
# *********** Install Prerequisites ***************
# -qq : No output except for errors
RUN apt-get update --fix-missing \
&& apt-get install -qqy --no-install-recommends \
locales nano sudo git pelican apt-transport-https ca-certificates python3-pip python3-setuptools \
# ********** Set Locale **********************
&& echo "en_US.UTF-8 UTF-8" > /etc/locale.gen \
&& locale-gen \
&& update-ca-certificates \
&& python3 -m pip install wheel \
&& cd /home/attackuser \
&& cd /home/attackuser/attack-website \
&& python3 -m pip install -r requirements.txt
WORKDIR /home/attackuser/attack-website
RUN python3 update-attack.py --no-test-exitstatus
WORKDIR /home/attackuser/attack-website/output
CMD ["python3", "-m", "pelican.server", "80"]