-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
34 lines (27 loc) · 928 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
33
34
## Using the official ubuntu image:
FROM ubuntu:16.04
## Preamble:
MAINTAINER Vehbi Sinan Tunalioglu <[email protected]>
## Define versions required:
ENV VERSION 0.0.3
ENV VERSION_OPENCPU 1.6
## Prepare apt-get:
RUN echo "debconf debconf/frontend select Noninteractive" | debconf-set-selections && \
apt-get update && \
apt-get -y dist-upgrade && \
apt-get install -y software-properties-common && \
add-apt-repository -y ppa:opencpu/opencpu-${VERSION_OPENCPU} && \
apt-get update -qy && \
apt-get install -qy nano unzip pandoc wget opencpu littler && \
apt-get clean autoclean && \
apt-get autoremove -y && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
## Copy stuff:
COPY opt/ /opt/telostat
## Run setup script:
RUN /opt/telostat/bin/setup.sh
# Expose required ports:
EXPOSE 80
EXPOSE 8004
# Set the command:
CMD service opencpu restart && tail -F /var/log/opencpu/apache_access.log