-
Notifications
You must be signed in to change notification settings - Fork 38
Expand file tree
/
Copy pathDockerfile.parrot
More file actions
26 lines (21 loc) · 1.07 KB
/
Dockerfile.parrot
File metadata and controls
26 lines (21 loc) · 1.07 KB
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
FROM parrotsec/core
ARG DEBIAN_FRONTEND=noninteractive
SHELL ["/bin/bash", "-c"]
# Parrot mirrors can be flaky (404s). Use direct CDN to avoid broken mirror redirects.
RUN echo 'Acquire::Retries "4";' > /etc/apt/apt.conf.d/80-retries && \
sed -i 's|https://deb.parrot.sh/parrot |https://deb.parrot.sh/direct/parrot/ |g' /etc/apt/sources.list.d/parrot.list && \
apt update && apt full-upgrade -y && \
apt install -y python3 python3-pip python3-venv && \
python3 -m venv /opt/stegoveritas_venv && \
source /opt/stegoveritas_venv/bin/activate && \
python3 -m pip install -U setuptools pip && \
useradd -m -s /bin/bash stegoveritas && \
mkdir -p /opt
COPY --chown=stegoveritas:stegoveritas . /opt/stegoveritas/
RUN source /opt/stegoveritas_venv/bin/activate && \
cd /opt/stegoveritas && pip3 install --no-cache-dir -e .[dev] && \
stegoveritas_install_deps && \
echo "source /opt/stegoveritas_venv/bin/activate" >> /home/stegoveritas/.bashrc && \
chown -R stegoveritas:stegoveritas /opt/stegoveritas_venv
WORKDIR /home/stegoveritas
USER stegoveritas