-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
48 lines (32 loc) · 906 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
37
38
39
40
41
42
43
44
45
46
47
#Base image
FROM ubuntu:16.04
#Copying files from host
COPY ansible/* .ssh/
#Setting env vars
ENV HISTFILESIZE=1000
#Setting env vars
ENV HISTSIZE=1000
#Installing/Update packages
RUN apt-get update;
#Installing/Update packages
RUN apt-get dist-upgrade -y;
#Installing/Update packages
RUN apt-get install -y python-pip chromium-browser chromium-chromedriver
#Creating directory
RUN mkdir /media/scraped
#Change ownership
# chown remain in effect on mounted volume
#
# echo /dev/xvdp /media/scraped/ ext4 auto 0 1 >> /etc/fstab
#Mounting volume, will also handle in compose file
VOLUME ["/media/scraped"]
#Change ownership
# chown remain in effect on mounted volume
#Git repo clone
RUN git clone [email protected]:mgajda/scraper-python.git
#Change directory
WORKDIR scraper-python
#Installing python packages
RUN pip install -r requirements.txt
#Removing dir
RUN rm -rf html logs output_csv