Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cris_l1b
user
Commits
8b435752
Commit
8b435752
authored
Apr 12, 2022
by
William Roberts
Browse files
Add IMAGE arg for building branch
parent
bf6bd20b
Pipeline
#36763
passed with stage
in 7 minutes and 54 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
serve/ru/Dockerfile
View file @
8b435752
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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment