mirror of
https://github.com/kemko/nomad.git
synced 2026-01-01 16:05:42 +03:00
build: add Docker image (#17017)
Co-authored-by: Daniel Kimsey <90741+dekimsey@users.noreply.github.com>
This commit is contained in:
22
Dockerfile
Normal file
22
Dockerfile
Normal file
@@ -0,0 +1,22 @@
|
||||
# Copyright (c) HashiCorp, Inc.
|
||||
# SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
# docker.io/library/busybox:1.36.0
|
||||
# When pinning use the multi-arch manifest list, `docker buildx imagetools inspect ...`
|
||||
FROM docker.io/library/busybox@sha256:9e2bbca079387d7965c3a9cee6d0c53f4f4e63ff7637877a83c4c05f2a666112 as release
|
||||
|
||||
ARG PRODUCT_NAME=nomad
|
||||
ARG PRODUCT_VERSION
|
||||
ARG PRODUCT_REVISION
|
||||
# TARGETARCH and TARGETOS are set automatically when --platform is provided.
|
||||
ARG TARGETOS TARGETARCH
|
||||
|
||||
LABEL maintainer="Nomad Team <nomad@hashicorp.com>"
|
||||
LABEL version=${PRODUCT_VERSION}
|
||||
LABEL revision=${PRODUCT_REVISION}
|
||||
|
||||
COPY dist/$TARGETOS/$TARGETARCH/nomad /bin/
|
||||
COPY ./scripts/docker-entrypoint.sh /
|
||||
|
||||
ENTRYPOINT ["/docker-entrypoint.sh"]
|
||||
CMD ["help"]
|
||||
Reference in New Issue
Block a user