forked from mytardis/mytardis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile-base
48 lines (43 loc) · 1.06 KB
/
Dockerfile-base
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
FROM ubuntu:14.04
RUN mkdir -p /home/webapp
RUN groupadd -r webapp && useradd -r -g webapp webapp
ENV DEBIAN_FRONTEND noninteractive
RUN echo 'APT::Get::Assume-Yes "true";' > /etc/apt/apt.conf.d/90assumeyes
RUN apt-get update && apt-get install \
-qy \
-o APT::Install-Recommends=false \
-o APT::Install-Suggests=false \
git \
libfreetype6 \
libjpeg8 \
libldap-2.4-2 \
libmysqlclient18 \
libpq5 \
libsasl2-2 \
libssl1.0.0 \
libxml2 \
libxslt1.1 \
nodejs \
npm \
python-anyjson \
python-billiard \
python-bs4 \
python-crypto \
python-dateutil \
python-flexmock \
python-html5lib \
python-pip \
python-pystache \
python-virtualenv \
python-wand \
python-yaml \
zlib1g \
&& apt-get clean
RUN mkdir /appenv
RUN chown -R webapp:webapp /appenv
RUN chown -R webapp:webapp /home/webapp
USER webapp
RUN virtualenv --system-site-packages /appenv
RUN . /appenv/bin/activate; pip install -U -e "git+https://github.com/pypa/pip.git#egg=pip" wheel
COPY . /home/webapp/
USER root