-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
61 lines (49 loc) · 1.16 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
50
51
52
53
54
55
56
57
58
59
60
61
FROM ubuntu:trusty
ENV DEBIAN_FRONTEND noninteractive
ENV PYTHONUNBUFFERED true
ENV VIRTUAL_ENV /srv/venv
ENV PATH $VIRTUAL_ENV/bin:$PATH
RUN apt-get update \
&& apt-get --yes --no-install-recommends install \
gcc \
g++ \
libc6-dev \
python2.7 \
python2.7-dev \
python-pip \
libssl-dev \
libgnutls28-dev \
libtool \
build-essential \
bash-completion \
file \
libmysqlclient-dev \
libffi-dev \
libev-dev \
libevent-dev \
libxml2-dev \
libxslt1-dev \
libnacl-dev \
redis-tools \
vim \
htop \
aptitude \
&& rm -rf /var/lib/apt/lists/*
RUN pip install virtualenv \
&& mkdir -p "${VIRTUAL_ENV}" \
&& virtualenv "${VIRTUAL_ENV}"
RUN adduser --quiet --system --uid 1000 --group --disabled-login \
--home /srv/agentzero agentzero
WORKDIR /srv/agentzero
RUN mkdir -p /srv/agentzero
ENV VVERSION 1
COPY *.txt /tmp/
RUN pip install -U pip
# RUN pip install -r /tmp/requirements.txt
RUN pip install -r /tmp/development.txt
COPY . /srv/agentzero/
ENV PATH /srv/agentzero/bin
ENV PYTHONPATH /srv/agentzero/
#RUN python setup.py install
#USER agentzero
CMD ["agentzero"]