forked from davekk/Scripts
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbasic_dockerfile.bash
More file actions
30 lines (21 loc) · 789 Bytes
/
basic_dockerfile.bash
File metadata and controls
30 lines (21 loc) · 789 Bytes
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
# the ubuntu base image
FROM ubuntu:18.04
# labels
LABEL ubuntu.version="18.04"
# apps to install
RUN useradd beca-09
RUN apt-get -y update && apt-get install -yy tzdata && apt-get -yy install r-base && apt-get -yy install vim
#RUN package.install(ape)
# Set the timezone.
RUN R -e "install.packages('ape', repos = 'http://cran.us.r-project.org')"
ADD https://raw.githubusercontent.com/davekk/summary_r_scripts/master/100_tree.R /home/
RUN chmod 755 /home/100_tree.R && touch /home/hundred_trees.nh && chmod 777 /home/hundred_trees.nh
USER beca-09
# the working directory
WORKDIR /home/
#entry point addition to the docker file
ENTRYPOINT ["/bin/bash"]
# RUN apk add --no-cache tzdata
docker build -t my-r-file .
docker run -ti my-r-file
#