-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (21 loc) · 1012 Bytes
/
Copy pathDockerfile
File metadata and controls
28 lines (21 loc) · 1012 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
# raix — R + AI + eXperience
# Docker image with R, raix, and all dependencies pre-installed
FROM rocker/r-ver:latest
LABEL org.opencontainers.image.title="raix"
LABEL org.opencontainers.image.description="AI-powered coding assistant for R"
LABEL org.opencontainers.image.source="https://github.com/twomathematicians-code/raix"
LABEL org.opencontainers.image.licenses="MIT"
# Install system dependencies
RUN apt-get update && apt-get install -y \
libcurl4-openssl-dev \
libssl-dev \
libxml2-dev \
&& rm -rf /var/lib/apt/lists/*
# Install R package dependencies
RUN R -e 'install.packages(c("remotes","httr","jsonlite","cli","shiny","rstudioapi","testthat"), repos="https://cran.rstudio.com")'
# Install raix from GitHub
RUN R -e 'remotes::install_github("twomathematicians-code/raix")'
# Set working directory
WORKDIR /home/rstudio
# Default command: start R with raix loaded
CMD ["R", "-e", "library(raix); cat('raix v', as.character(packageVersion('raix')), 'ready\\n'); raix_info()"]