forked from ericwastaken/network-multitool
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
16 lines (14 loc) · 705 Bytes
/
Dockerfile
File metadata and controls
16 lines (14 loc) · 705 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# Note we're forcing the platform to linux/amd64 to avoid issues generating images on Apple Silicon workstations
FROM --platform=linux/amd64 wbitt/network-multitool as base
# Set Prompt
ENV PS1="\u@\h:\w$ "
# Add alias to user profile
RUN echo "alias ll='ls -la'" >> /root/.bashrc
# Frpom https://stackoverflow.com/questions/62554991/how-do-i-install-python-on-alpine-linux
# Install python/pip
ENV PYTHONUNBUFFERED=1
RUN apk add --update --no-cache python3 && ln -sf python3 /usr/bin/python
RUN python3 -m ensurepip
RUN pip3 install --no-cache --upgrade pip setuptools
COPY ./host-volume/python-packages.txt /root/host-volume/python-packages.txt
RUN pip install -r /root/host-volume/python-packages.txt