Skip to content

Commit

Permalink
hadolint
Browse files Browse the repository at this point in the history
  • Loading branch information
shouples authored Jul 11, 2023
1 parent e76bd7d commit 6384ec9
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions R/base/4.3.0/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ RUN groupadd --gid 4004 noteable && \
chown --recursive noteable:noteable /srv/noteable && \
mkdir -p /etc/noteable && chown noteable:noteable /etc/noteable

WORKDIR /tmp

# Install tini to manage passing signals to the child kernel process
ENV TINI_VERSION v0.19.0
ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini /tini
Expand All @@ -34,18 +36,19 @@ COPY apt-install /usr/bin/
COPY Aptfile .
RUN /usr/bin/apt-install Aptfile

SHELL ["/bin/bash", "-o", "pipefail", "-c"]
RUN wget -qO- https://micromamba.snakepit.net/api/micromamba/linux-64/latest | tar -xvj bin/micromamba && \
./bin/micromamba shell init -s bash -p ~/micromamba

USER noteable
RUN micromamba create --name noteable-venv \
-c conda-forge \
-y \
r=${NBL_R_VERSION}
r="${NBL_R_VERSION}"
# make subsequent RUN commands use the virtualenv:
SHELL ["micromamba", "run", "-n", "noteable-venv", "/bin/bash", "-c"]

# --- CORE: KERNEL INSTALLATION ---
# hadolint ignore=SC2239
RUN R -e "install.packages('IRkernel', repos='http://cran.us.r-project.org')"

COPY secrets_helper.sh /tmp/secrets_helper.sh
Expand Down

0 comments on commit 6384ec9

Please sign in to comment.