From bcf966b2d9de5b870f6e3f865f9a933afd7e4e9e Mon Sep 17 00:00:00 2001 From: Peter Adkins <74542596+hcpadkins@users.noreply.github.com> Date: Tue, 1 Oct 2024 12:51:17 +0100 Subject: [PATCH] Move Dockerfile to build current source, rather than release. (#57) * Move Dockerfile to build current source, rather than release. * Less steps. --- Dockerfile | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index c7c1a4f..5b8e4e3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,15 @@ # Copyright (c) HashiCorp, Inc. # SPDX-License-Identifier: MPL-2.0 -FROM python:3.9-slim +FROM python:3.12-slim -RUN pip install --no-cache-dir grove +# Copy in Grove ready for installation. +WORKDIR /tmp/grove +COPY grove grove/ +COPY pyproject.toml . + +# Install Grove from sources, and clean-up. +RUN pip install --no-cache-dir /tmp/grove && \ + rm -rf /tmp/grove ENTRYPOINT ["grove"]