-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
41 lines (32 loc) · 1 KB
/
Dockerfile
File metadata and controls
41 lines (32 loc) · 1 KB
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
# Pull base image - ubuntu with java 8
# Syntax: FROM <image>[:<tag>] [AS <name>]
FROM openjdk:8
MAINTAINER Dominik Grzelak "dominik@offbeat-pioneer.net"
# Root
USER root
RUN groupadd -g 1001 ruser
RUN useradd -u 1001 -g staff -m ruser
RUN usermod -a -G ruser,staff ruser
# Pre-requirements
RUN apt-get clean && apt-get update && apt-get install -y --no-install-recommends apt-utils
#RUN DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends apt-utils
RUN apt-get install -y \
software-properties-common \
libssl-dev \
libxml2-dev \
libreadline-gplv2-dev
## R install
RUN apt-get install -y \
r-base \
r-recommended \
r-base-dev
COPY ./etc/ /etc/
# User
COPY ./home/ruser /home/ruser
RUN chown -R ruser:staff /home/ruser
RUN R CMD INSTALL /home/ruser/Rserve_1.8-5.tar.gz
#USER ruser
WORKDIR /home/ruser
#RUN /home/ruser/start_Rserve.sh
ENTRYPOINT /home/ruser/start_Rserve.sh && /bin/bash
#ENTRYPOINT ["/home/ruser/start_Rserve.sh", "/bin/bash"]