Skip to content

Commit

Permalink
legger til dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinthon committed Jan 28, 2025
1 parent d65321b commit 69d8e86
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
FROM rapporteket/base-r:main

LABEL maintainer = "Kevin Thon <[email protected]>"
LABEL no.rapporteket.cd.enable="true"

WORKDIR /app/R

COPY *.tar.gz .

RUN R -e "remotes::install_local(list.files(pattern = \"*.tar.gz\"))" \
&& rm ./*.tar.gz \
&& R -e "remotes::install_github(\"Rapporteket/rapbase\", ref = \"main\")"

EXPOSE 3838

RUN adduser --uid "1000" --disabled-password rapporteket && \
chown -R 1000:1000 /app/R && \
chmod -R 755 /app/R
USER rapporteket

CMD ["R", "-e", "options(shiny.port = 3838, shiny.host = \"0.0.0.0\"); nra::nraApp()"]

0 comments on commit 69d8e86

Please sign in to comment.