Commit 8b435752 authored by William Roberts's avatar William Roberts
Browse files

Add IMAGE arg for building branch

parent bf6bd20b
Pipeline #36763 passed with stage
in 7 minutes and 54 seconds
ARG ENV_NAME=env
ARG IMAGE=gitlab.ssec.wisc.edu:5555/cris_l1b/user/feat-serve-ru:latest
FROM condaforge/mambaforge:4.11.0-0 as environment
RUN apt-get update
......@@ -12,7 +13,7 @@ RUN conda-pack -n ${ENV_NAME} -o /${ENV_NAME}.tar &&\
RUN mamba install -y -p /${ENV_NAME} --strict-channel-priority -c conda-forge python=3.8 flask markdown
FROM gitlab.ssec.wisc.edu:5555/cris_l1b/user/develop
FROM ${IMAGE}
ARG ENV_NAME
ENV ENV_NAME=$ENV_NAME
COPY --from=environment /$ENV_NAME /$ENV_NAME
......@@ -25,5 +26,5 @@ COPY ru_server.py /app/ru_server.py
COPY README.md /README.md
WORKDIR /app
#RUN chmod a+xwr /
CMD ["python", "ru_server.py"]
ENV saveTotalRU_FLAG=1
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment