Skip to content

Commit 8d746a5

Browse files
committed
Show what it looks like in the README
1 parent 64e2e76 commit 8d746a5

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

README.Rmd

-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ For example, let's create a Dockerfile for an R script:
7171

7272
```{r}
7373
#| label: basic-dockerfile
74-
#| eval: false
7574
library(dockitect)
7675
7776
# Create a basic Dockerfile for an R script

README.md

+6
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,12 @@ df_rscript <- dockerfile() |>
7474
dfi_cmd("Rscript /app/analysis.R")
7575

7676
df_rscript
77+
#> FROM rocker/r-ver:4.4.3
78+
#> LABEL maintainer="[email protected]"
79+
#> RUN apt-get update && apt-get install -y libcurl4-openssl-dev
80+
#> WORKDIR /app
81+
#> COPY analysis.R /app/
82+
#> CMD Rscript /app/analysis.R
7783

7884
## Write the Dockerfile to disk
7985
# write_dockerfile(df_rscript)

0 commit comments

Comments
 (0)