-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
31 lines (23 loc) · 1.08 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
FROM ubuntu:16.04
MAINTAINER Thiago Zilli Sarmento <[email protected]>
# No interactive with frontend
ENV DEBIAN_FRONTEND noninteractive
# Environment user
ENV USER root
# Set timezone
ENV TZ=America/Sao_Paulo
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 0C49F3730359A14518585931BC711F9BA15703C6
RUN echo "deb [ arch=amd64,arm64 ] http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.4 multiverse" | tee /etc/apt/sources.list.d/mongodb-org-3.4.list
# Install tools
RUN apt-get update && apt-get install -y --no-install-recommends apt-utils
RUN apt-get install -y vim git curl wget mongodb-org redis-server inetutils-ping inetutils-traceroute screen openssl net-tools
RUN apt-get install -y iodine dnsutils
# Remove server redis from startup
#RUN update-rc.d redis-server disable
#RUN update-rc.d mongodb-org disable
# Copy loop script
RUN mkdir -p /var/scripts_tools
COPY scripts/idle.sh /var/scripts_tools/idle.sh
#Fire application
ENTRYPOINT ["/var/scripts_tools/idle.sh"]