SauravMaheshkar commited on
Commit
36e49b9
1 Parent(s): ba3d140

feat: add `ARG` for package version

Browse files
Files changed (1) hide show
  1. 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 = "0.9.0"
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"