Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…sion docker file.
  • Loading branch information
anna-parker committed Jul 24, 2024
1 parent 05cd091 commit 7e0adae
Show file tree
Hide file tree
Showing 4 changed files with 443 additions and 2 deletions.
16 changes: 15 additions & 1 deletion ena-submission/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
FROM mambaorg/micromamba:1.5.8

# Install dependencies needed for webin-cli
USER root
RUN apt-get update && apt-get install -y \
default-jre \
wget \
&& rm -rf /var/lib/apt/lists/*
RUN mkdir -p /package
USER $MAMBA_USER

COPY --chown=$MAMBA_USER:$MAMBA_USER environment.yml /tmp/env.yaml
COPY --chown=$MAMBA_USER:$MAMBA_USER .mambarc /tmp/.mambarc

Expand All @@ -10,6 +19,11 @@ RUN micromamba config set extract_threads 1 \
# Set the environment variable to activate the conda environment
ARG MAMBA_DOCKERFILE_ACTIVATE=1

COPY --chown=$MAMBA_USER:$MAMBA_USER . /package

ENV WEBIN_CLI_VERSION 7.3.1
USER root
RUN wget -q "https://github.com/enasequence/webin-cli/releases/download/${WEBIN_CLI_VERSION}/webin-cli-${WEBIN_CLI_VERSION}.jar" -O /package/webin-cli.jar
USER $MAMBA_USER

COPY --chown=$MAMBA_USER:$MAMBA_USER . /package
WORKDIR /package
Loading

0 comments on commit 7e0adae

Please sign in to comment.