summaryrefslogtreecommitdiffstats
path: root/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile27
1 files changed, 27 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..a2850f5
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,27 @@
+ARG PYTHON_VER=3.10
+
+FROM python:${PYTHON_VER}-slim
+
+RUN pip install --upgrade pip
+
+WORKDIR /local
+COPY . /local
+
+LABEL maintainer="Thomas Grimonet <tom@inetsix.net>"
+LABEL "org.opencontainers.image.title"="eos-downloader" \
+ "org.opencontainers.image.description"="eos-downloader container" \
+ "org.opencontainers.artifact.description"="A CLI to manage Arista EOS version download" \
+ "org.opencontainers.image.source"="https://github.com/titom73/eos-downloader" \
+ "org.opencontainers.image.url"="https://github.com/titom73/eos-downloader" \
+ "org.opencontainers.image.documentation"="https://github.com/titom73/eos-downloader" \
+ "org.opencontainers.image.licenses"="Apache-2.0" \
+ "org.opencontainers.image.vendor"="N/A" \
+ "org.opencontainers.image.authors"="Thomas Grimonet <tom@inetsix.net>" \
+ "org.opencontainers.image.base.name"="python" \
+ "org.opencontainers.image.revision"="dev" \
+ "org.opencontainers.image.version"="dev"
+
+ENV PYTHONPATH=/local
+RUN pip --no-cache-dir install .
+
+ENTRYPOINT [ "/usr/local/bin/ardl" ]