-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdockerfile
More file actions
45 lines (30 loc) · 749 Bytes
/
dockerfile
File metadata and controls
45 lines (30 loc) · 749 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
FROM rocker/r-ubuntu as base
#Creating project directory
RUN mkdir final_project
WORKDIR /final_project
RUN mkdir -p renv
COPY renv.lock renv.lock
COPY .Rprofile .Rprofile
COPY renv/activate.R renv/activate.R
COPY renv/settings.json renv/setting.json
RUN mkdir renv/.cache
ENV RENV_PATHS_CACHE renv/.cache
RUN R -e "renv::restore()"
#Adding programs
FROM rocker/r-ubuntu
RUN apt-get update
RUN apt-get install -y pandoc
WORKDIR /final_project
COPY --from=base /final_project .
# Creating organizational structure
Run mkdir output
Run mkdir data
Run mkdir code
Run mkdir report
COPY data data
COPY code code
COPY Makefile .
COPY final_report.Rmd .
COPY config.yml .
# Making the report and moving it to the shared folder
CMD make