Skip to content

Commit

Permalink
udpate dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnCoene committed Sep 20, 2020
1 parent a642d0b commit 1968021
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
FROM rocker/r-ver:latest
RUN apt-get update && apt-get install -y \
git-core \
libssl-dev
RUN echo "options(repos = c(CRAN = 'https://packagemanager.rstudio.com/all/latest'))" >> /usr/local/lib/R/etc/Rprofile.site
RUN R -e 'install.packages("remotes")'
RUN R -e 'remotes::install_github("JohnCoene/ambiorix")'
Expand Down
20 changes: 20 additions & 0 deletions docker/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Ambiorix

See [how to deploy](https://ambiorix.john-coene.com/#/guide/deploy) ambiorix for more details.


```bash
docker pull jcoenep/ambiorix
```

By default the image will use an internal very basic application and binds it to port `3000`.

```bash
docker run -p 3000:3000 jcoenep/ambiorix
```

To use your own application mount your app in the images `/app` directory, so from the root of the app this would look like this:

```bash
docker run -v "$(pwd)"/.:/app -p 3000:3000 jcoenep/ambiorix
```

0 comments on commit 1968021

Please sign in to comment.