-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: add experimental arch Dockerfile
- Loading branch information
1 parent
e32a98c
commit 76a783d
Showing
1 changed file
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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')"] |