Mercurial > p > roundup > code
comparison scripts/Docker/Dockerfile @ 7517:207a7eca41ed
Add labels for ARGS that can change as part of build.
memorialize the pythonversion and pip_mod ARGS in addition to already
memorialized source arg in the labels for the image.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Mon, 26 Jun 2023 01:10:50 -0400 |
| parents | ec738682874d |
| children | ed2bc951277b |
comparison
equal
deleted
inserted
replaced
| 7516:93e4ec305ed8 | 7517:207a7eca41ed |
|---|---|
| 193 else \ | 193 else \ |
| 194 echo Nothing to pip update; \ | 194 echo Nothing to pip update; \ |
| 195 fi | 195 fi |
| 196 | 196 |
| 197 ARG source | 197 ARG source |
| 198 ARG pythonversion | |
| 199 ARG pip_mod | |
| 198 LABEL "org.opencontainers.image.vendor"="Roundup Issue Tracker Team" \ | 200 LABEL "org.opencontainers.image.vendor"="Roundup Issue Tracker Team" \ |
| 199 "org.opencontainers.image.title"="Roundup Issue Tracker" \ | 201 "org.opencontainers.image.title"="Roundup Issue Tracker" \ |
| 200 "org.opencontainers.image.description"="Roundup Issue Tracker with multi-backend support installed via $source" \ | 202 "org.opencontainers.image.description"="Roundup Issue Tracker with multi-backend support installed via $source with python version $pythonversion" \ |
| 201 "org.opencontainers.image.version"="2.2.0" \ | 203 "org.opencontainers.image.version"="2.2.0" \ |
| 202 "org.opencontainers.image.authors"="roundup-devel@lists.sourceforge.net" \ | 204 "org.opencontainers.image.authors"="roundup-devel@lists.sourceforge.net" \ |
| 203 "org.opencontainers.image.licenses"="MIT AND ZPL-2.0 AND Python-2.0" \ | 205 "org.opencontainers.image.licenses"="MIT AND ZPL-2.0 AND Python-2.0" \ |
| 204 "org.opencontainers.image.documentation"="https://www.roundup-tracker.org/docs/installation.html" | 206 "org.opencontainers.image.documentation"="https://www.roundup-tracker.org/docs/installation.html" \ |
| 207 "pip-modules"="$pip_mod" | |
| 205 | 208 |
| 206 | 209 |
| 207 ARG pythonversion | 210 ARG pythonversion |
| 208 # pull over built assets | 211 # pull over built assets |
| 209 COPY --from=build /usr/local/lib/python${pythonversion}/site-packages /usr/local/lib/python${pythonversion}/site-packages/ | 212 COPY --from=build /usr/local/lib/python${pythonversion}/site-packages /usr/local/lib/python${pythonversion}/site-packages/ |
