-
Notifications
You must be signed in to change notification settings - Fork 8
/
Dockerfile
49 lines (37 loc) · 1.35 KB
/
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
48
49
# Copyright (c) The SimpleFIN Team
# See LICENSE for details.
FROM ubuntu:14.04
MAINTAINER iffy
# system deps
RUN apt-get update
RUN apt-get install -y python-dev
RUN apt-get install -y build-essential
RUN apt-get install -y python-pip
RUN apt-get install -y git
RUN apt-get install -y libsqlite3-dev
RUN apt-get install -y curl
# for lxml
RUN apt-get install -y libz-dev libxml2-dev libxslt1-dev
RUN pip install -U pip
#------------------------------------------------------------------------------
# firefox and vnc
#------------------------------------------------------------------------------
RUN apt-get update && apt-get install -y x11vnc xvfb firefox
RUN apt-get install -y xfonts-100dpi \
xfonts-75dpi \
xfonts-scalable \
xfonts-cyrillic
#------------------------------------------------------------------------------
# python deps
#------------------------------------------------------------------------------
WORKDIR /work
COPY requirements.txt /work/requirements.txt
RUN pip install -r /work/requirements.txt
COPY . /work
ADD dockerutil/start.sh /home/root/start.sh
#------------------------------------------------------------------------------
# Use INSECURE, shared, globally available key
#------------------------------------------------------------------------------
RUN mv util/samplekeys .gpghome
EXPOSE 80
ENTRYPOINT ["sh", "/home/root/start.sh"]