-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathDockerfile
32 lines (22 loc) · 820 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
# ElasticPotPY Dockerfile by MS
#
# VERSION 16.03.2
FROM ubuntu:14.04.3
MAINTAINER MS
ENV DEBIAN_FRONTEND noninteractive
EXPOSE 9200
# Setup apt
RUN ln -snf /bin/bash /bin/sh && apt-get update -y && apt-get upgrade -y
# Install packages
RUN apt-get install -y python3 python3-setuptools supervisor git
RUN easy_install3 bottle requests configparser datetime
# Setup user, groups and configs
RUN addgroup --gid 2000 tpot && \
adduser --system --no-create-home --shell /bin/bash --uid 2000 --disabled-password --disabled-login --gid 2000 tpot
ADD supervisord.conf /etc/supervisor/conf.d/supervisord.conf
# Clean up
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
WORKDIR /opt
RUN git clone https://github.com/schmalle/ElasticpotPY.git
WORKDIR /opt/ElasticpotPY
CMD ["/usr/bin/supervisord"]