Spaces:
Running
Running
feat: add `ARG` for package version
Browse files- Dockerfile +2 -1
Dockerfile
CHANGED
|
@@ -3,11 +3,12 @@
|
|
| 3 |
|
| 4 |
ARG ARCH=linux/amd64
|
| 5 |
ARG VERSION=latest
|
|
|
|
| 6 |
|
| 7 |
FROM --platform=$ARCH julia:$VERSION
|
| 8 |
|
| 9 |
# metainformation
|
| 10 |
-
LABEL org.opencontainers.image.version =
|
| 11 |
LABEL org.opencontainers.image.authors = "Miles Cranmer"
|
| 12 |
LABEL org.opencontainers.image.source = "https://github.com/MilesCranmer/PySR"
|
| 13 |
LABEL org.opencontainers.image.licenses = "Apache License 2.0"
|
|
|
|
| 3 |
|
| 4 |
ARG ARCH=linux/amd64
|
| 5 |
ARG VERSION=latest
|
| 6 |
+
ARG PKGVERSION=0.9.0
|
| 7 |
|
| 8 |
FROM --platform=$ARCH julia:$VERSION
|
| 9 |
|
| 10 |
# metainformation
|
| 11 |
+
LABEL org.opencontainers.image.version = $PKGVERSION
|
| 12 |
LABEL org.opencontainers.image.authors = "Miles Cranmer"
|
| 13 |
LABEL org.opencontainers.image.source = "https://github.com/MilesCranmer/PySR"
|
| 14 |
LABEL org.opencontainers.image.licenses = "Apache License 2.0"
|