BenchMark/Dockerfile-prod
# TODO: use this Dockerfile in Github Actions
FROM condaforge/mambaforge:4.10.1-0
ARG LIBMARK_VERSION
RUN useradd -ms /bin/bash app
ENV CODE_DIR=/home/app/code
WORKDIR $CODE_DIR
RUN chown -R app:app /opt/conda
RUN chown -R app:app $CODE_DIR
USER app
COPY environment.yml .
RUN mamba env create -f environment.yml
# use the conda environment for the subsequent commands
SHELL ["conda", "run", "-n", "benchmark", "/bin/sh", "-c"]
COPY requirements.txt .
RUN pip install -r requirements.txt
RUN pip install git+https://github.com/ohtu2021-kvantti/LibMark.git@${LIBMARK_VERSION}
COPY . .