MilesCranmer commited on
Commit
93cf05b
2 Parent(s): 18c1f9c 7fa5f44

Merge pull request #166 from SauravMaheshkar/patch-1

Browse files

feat(docker): Add opencontainers image-spec to `Dockerfile`

Files changed (1) hide show
  1. Dockerfile +7 -0
Dockerfile CHANGED
@@ -3,9 +3,16 @@
3
 
4
  ARG ARCH=linux/amd64
5
  ARG VERSION=latest
 
6
 
7
  FROM --platform=$ARCH julia:$VERSION
8
 
 
 
 
 
 
 
9
  # Need to use ARG after FROM, otherwise it won't get passed through.
10
  ARG PYVERSION=3.9.10
11
 
 
3
 
4
  ARG ARCH=linux/amd64
5
  ARG VERSION=latest
6
+ ARG PKGVERSION=0.9.5
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"
15
+
16
  # Need to use ARG after FROM, otherwise it won't get passed through.
17
  ARG PYVERSION=3.9.10
18