Basic Ubuntu 20.04 with some Python3 goodies
862
FROM ubuntu:20.04
LABEL maintainer="Maurice Ruckman"
WORKDIR /home
RUN echo 'Acquire { http::User-Agent "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36"; };' >> /etc/apt/apt.conf
## Refer: https://stackoverflow.com/questions/28405902/how-to-set-the-locale-inside-a-debian-ubuntu-docker-container
ENV LANG C.UTF-8
ENV LC_ALL C.UTF-8
## SET TIMEZONE - THIS NEEDS TO GO FIRST TO FIX OTHER COMPONENTS
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get -y update
RUN echo "America/Los_Angeles" > /etc/timezone
RUN apt-get install -y tzdata
RUN ln -fs /usr/share/zoneinfo/America/Los_Angeles /etc/localtime
RUN dpkg-reconfigure -f noninteractive tzdata
## BASIC TOOLS
RUN apt-get -y update
RUN apt-get -y install
RUN apt-get -y upgrade
RUN apt-get -y dist-upgrade
RUN apt-get -y autoremove
RUN apt-get -y install wget
RUN apt-get -y install curl
RUN apt-get -y install git
RUN git config --global http.sslVerify false
RUN apt-get -y install zip
RUN apt-get -y install build-essential
RUN apt-get -y install rsync
RUN apt-get -y install nano
# INSTALLING SELENIUM DRIVE TO WORK WITH ONLY FIREFOX FOR NOW
# FIREFOX GECKO DRIVER SEEMS TO INSTALL EASIER FROM REPOS
RUN apt-get -y install firefox-geckodriver
## INSTALL PYTHON3 LIBRARIES
RUN apt-get -y install libssl-dev
RUN apt-get -y install libffi-dev
RUN apt-get -y install python3-dev
RUN apt-get -y install python3-pip
RUN python3 -m pip install --upgrade pip
RUN pip3 install JayDeBeApi
RUN pip3 install bs4
RUN pip3 install beautifulsoup4
RUN pip3 install lxml
RUN pip3 install requests
RUN pip3 install flask
RUN pip3 install pymongo
RUN pip3 install pytz
RUN pip3 install xlwt
RUN pip3 install progressbar
RUN pip3 install pandas
RUN pip3 install openpyxl
RUN pip3 install selenium
RUN pip3 install pytest
## ENTRY POINT
CMD ["/bin/bash"]
Create an alias
alias dockerpy="docker run --rm --net=host -v \"${PWD}\":/home -it mruckman/ubuntu2004:213501 /bin/bash"
Run an anonymous container
docker run --rm --net=host \
-v "${PWD}\":/home \
-it mruckman/ubuntu2004:213501 /bin/bash
Content type
Image
Digest
sha256:9344ecfaf…
Size
694.6 MB
Last updated
almost 4 years ago
docker pull mruckman/ubuntu2004:224101