From 5fc5b0771574d1ce14b410c39e5a552a25d9bc09 Mon Sep 17 00:00:00 2001 From: Steven Gerrits Date: Tue, 27 Feb 2024 16:02:14 +0000 Subject: [PATCH] install poethepoet --- Dockerfile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 93178b8..48bc8a2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,16 +1,17 @@ # syntax=docker/dockerfile:1 +# syntax=docker/dockerfile:1 ARG PYTHON_VERSION=3.11.6 FROM python:$PYTHON_VERSION-slim AS base LABEL org.opencontainers.image.description "monitoring vespa nests" -ENV PYTHONFAULTHANDLER 1 -ENV PYTHONUNBUFFERED 1 +ENV PYTHONFAULTHANDLER=1 \ + PYTHONUNBUFFERED=1 \ + POETRY_VERSION=1.7.1 -# Install Poetry. -ENV POETRY_VERSION 1.7.1 +# Install Poetry and Poe the Poet RUN --mount=type=cache,target=/root/.cache/pip/ \ - pip install poetry==$POETRY_VERSION + pip install poetry==$POETRY_VERSION poethepoet # Install curl, compilers, and GDAL dependencies. RUN rm /etc/apt/apt.conf.d/docker-clean @@ -61,7 +62,6 @@ RUN --mount=type=cache,target=/root/.cache/pypoetry/ \ poetry install --only main --no-interaction --no-ansi COPY . . -RUN chmod +x manage.py ENTRYPOINT ["/opt/vespadb-env/bin/poe"] CMD ["serve"]