Skip to content

Commit

Permalink
build: add experimental arch Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
johannes-titz committed Sep 29, 2023
1 parent e32a98c commit 76a783d
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions Dockerfile.arch
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
FROM archlinux:latest

RUN yes | pacman -Syu

# deps for building
RUN yes | pacman -S make gcc gcc-fortran cmake r

# mimosa app from github with all deps
RUN R -e "install.packages('remotes', repos = 'http://cran.r-project.org')"
RUN R -e "remotes::install_github('johannes-titz/mimosa')"

# update mimosa and deps if necessary
ADD "https://www.random.org/cgi-bin/randbyte?nbytes=10&format=h" skipcache
RUN R -e "remotes::install_github('johannes-titz/mimosa')"

# rm package archive
RUN rm /var/cache/pacman/pkg/*

# remove build deps from above
RUN yes| pacman -R make gcc gcc-fortran cmake

# remove orphaned packages?
# RUN pacman -Qqd | pacman -Rsu -

# expose port
EXPOSE 3838

# run mimosa
CMD ["R", "-e", "mimosa::run_app(port = 3838, host = '0.0.0.0')"]

0 comments on commit 76a783d

Please sign in to comment.