Skip to content
Snippets Groups Projects
Commit 63d04813 authored by Carine Rey's avatar Carine Rey
Browse files

create a dedicated docker image

parent 8b5fc917
No related branches found
No related tags found
1 merge request!6Switch to main as default branch
FROM rocker/tidyverse
RUN apt-get update \
&& apt-get install -y \
libxt6
RUN Rscript -e "install.packages('rmdformats')"
#session 1
RUN Rscript -e "install.packages('rvest')"
RUN Rscript -e "install.packages('remotes'); remotes::install_github('rlesur/klippy')"
#!/bin/bash
set -euo pipefail +o nounset
TAG="v2022"
IMAGE_NAME="r_for_beginners"
DOCKERFILE_DIR="."
REPO=carinerey/$IMAGE_NAME
echo "## Build docker: $REPO:$TAG ##"
docker build -t $REPO:$TAG $DOCKERFILE_DIR
echo "## Build docker: $REPO ##"
docker build -t $REPO $DOCKERFILE_DIR
if [[ $1 == "push_yes" ]]
then
echo "## Push docker ##"
docker push $REPO:$TAG
docker push $REPO
fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment