forked from jalberse/viper_scraper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
36 lines (23 loc) · 889 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
31
32
33
34
35
36
FROM ubuntu:rolling
MAINTAINER [email protected]
RUN apt-get update && apt-get install -y locales && rm -rf /var/lib/apt/lists/* \
&& localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8
ENV LANG en_US.utf8
# Python tools
RUN apt-get update && apt-get upgrade -y && apt-get install -y python3-pip ipython3
# Shell debug tools
RUN apt-get install -y vim nmap iputils-ping ssh netcat htop slurm net-tools
# Graphics tools for video card stuff
RUN apt-get install -y libsm6 libxrender1 libfontconfig1
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
# Copy all keys and other files
COPY . /usr/src/app
# Other utilities files
RUN bash utils/get_gecko.sh && bash utils/get_phantomjs.sh
# Unbuffer to see logs with docker logs <containername>
ENV PYTHONUNBUFFERED=1
RUN pip3 install pipenv
RUN pipenv install
VOLUME /usr/src/app/data
#CMD ["pipenv", "shell"]