Skip to content
This repository has been archived by the owner on Nov 29, 2024. It is now read-only.

Commit

Permalink
use ubuntu. The image size with alpine is 1.11 GB with ubuntu 1.17 GB
Browse files Browse the repository at this point in the history
  • Loading branch information
skoulouzis committed Jan 16, 2024
1 parent 96c2074 commit e786851
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions Dockerfile-test
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,10 @@ RUN conda-pack -n venv -o /tmp/env.tar && \
RUN /venv/bin/conda-unpack


FROM rhub/r-minimal:4.4 as runtime
FROM ubuntu:24.04 as runtime

COPY --from=build /venv/ /venv/

ENV PATH=/venv/bin:$PATH
SHELL ["/bin/bash", "--login", "-c"]
SHELL ["/bin/bash", "-c"," source /venv/bin/activate;"]
RUN echo "source /venv/bin/activate" >> ~/.bashrc
RUN source /venv/bin/activate


RUN du -sh /venv
# test climwin
COPY test_climwin.R .
RUN Rscript test_climwin.R
RUN rm test_climwin.R
COPY test_climwin.R .

0 comments on commit e786851

Please sign in to comment.