Skip to content

Commit

Permalink
install poethepoet
Browse files Browse the repository at this point in the history
  • Loading branch information
stevegerrits committed Feb 27, 2024
1 parent 6d7efa1 commit 5fc5b07
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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"]
Expand Down

0 comments on commit 5fc5b07

Please sign in to comment.